[tinymce] Add key index types for html.Schema return vales (#35249)

For the various get*Elements() functions in TinyMCE's Schema class, it returns
a mapping from a string to an empty object. This commit updates the return type
for all of these functions to reflect that it is an object with string keys.
This commit is contained in:
Tyler Romeo
2019-05-14 09:54:22 -07:00
committed by Nathan Shively-Sanders
parent 7e1f1b03d4
commit b0efb56e7a
+12 -11
View File
@@ -3,6 +3,7 @@
// Definitions by: Martin Duparc <https://github.com/martinduparc>
// Poul Poulsen <https://github.com/ipoul>
// Nico Hartto <https://github.com/nicohartto>
// Tyler Romeo <https://github.com/Parent5446>
// Ashley Workman <https://github.com/CymruKakashi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -1227,35 +1228,35 @@ export namespace html {
addValidElements(valid_elements: string): void;
getBlockElements(): {};
getBlockElements(): {[name: string]: {}};
getBoolAttrs(): {};
getBoolAttrs(): {[name: string]: {}};
getCustomElements(): {};
getCustomElements(): {[name: string]: {}};
getElementRule(name: string): {};
getInvalidStyles(): void;
getMoveCaretBeforeOnEnterElements(): {};
getMoveCaretBeforeOnEnterElements(): {[name: string]: {}};
getNonEmptyElements(): {};
getNonEmptyElements(): {[name: string]: {}};
getSelfClosingElements(): {};
getSelfClosingElements(): {[name: string]: {}};
getShortEndedElements(): {};
getShortEndedElements(): {[name: string]: {}};
getSpecialElements(): {};
getSpecialElements(): {[name: string]: {}};
getTextBlockElements(): {};
getTextBlockElements(): {[name: string]: {}};
getTextInlineElements(): {};
getTextInlineElements(): {[name: string]: {}};
getValidClasses(): void;
getValidStyles(): void;
getWhiteSpaceElements(): {};
getWhiteSpaceElements(): {[name: string]: {}};
isValid(name: string, attr?: string): boolean;