Remove FontFace
type definitions
This commit is contained in:
parent
195392491e
commit
487d71464a
1 changed files with 0 additions and 15 deletions
15
ts/window.d.ts
vendored
15
ts/window.d.ts
vendored
|
@ -141,27 +141,12 @@ type ConfirmationDialogViewProps = {
|
||||||
resolve: () => void;
|
resolve: () => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
// This is the subset of `window.FontFace` that we need. We should delete this after
|
|
||||||
// upgrading to TypeScript 4.4, which will include a full declaration in [its official
|
|
||||||
// DOM type definitions][0].
|
|
||||||
//
|
|
||||||
// [0]: https://github.com/microsoft/TypeScript/blob/03dff41c9f2038f66fb358e5c23ebd7271145978/lib/lib.dom.d.ts#L5343-L5364
|
|
||||||
declare class FontFace {
|
|
||||||
constructor(
|
|
||||||
family: string,
|
|
||||||
source: string | ArrayBuffer | ArrayBufferView,
|
|
||||||
descriptors?: unknown
|
|
||||||
);
|
|
||||||
load(): Promise<FontFace>;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
// We want to extend `window`'s properties, so we need an interface.
|
// We want to extend `window`'s properties, so we need an interface.
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
// eslint-disable-next-line no-restricted-syntax
|
||||||
interface Window {
|
interface Window {
|
||||||
startApp: () => void;
|
startApp: () => void;
|
||||||
|
|
||||||
FontFace: typeof FontFace;
|
|
||||||
_: typeof Underscore;
|
_: typeof Underscore;
|
||||||
$: typeof jQuery;
|
$: typeof jQuery;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue