Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At the moment, since `@ts-expect-error` [doesn't apply][1] to type definitions, we get a downstream compilation error: ``` TS2416: Property 'addModule' in type 'BaseTheme' is not assignable to the same property in base type 'Theme'. Type '(name: string) => unknown' is not assignable to type '{ (name: "clipboard"): Clipboard; (name: "keyboard"): Keyboard; (name: "uploader"): Uploader; (name: "history"): History; (name: "selection"): Selection; (name: string): unknown; }'. Type '{}' is missing the following properties from type 'Clipboard': matchers, addMatcher, convert, convertHTML, and 8 more. 10 addModule(name: string): unknown; ``` This change updates the `Base` class to have the same signature as for `addModule()` as its parent class. [1]: microsoft/TypeScript#38628
- Loading branch information