-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use native fetch from node (#2381)
* chore: remove node-fetch * chore: update node types to newest version * fix: vendor types for opentype to prevent polluting global namespace with dom types * feat: use native fetch * refactor: use absolute minimum of opentype.js typings
- Loading branch information
Showing
6 changed files
with
52 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Extracted from @types/opentype.js@1.3.8 | ||
// Do not use @types/opentype.js as it references lib-dom | ||
|
||
declare module 'opentype.js' { | ||
export interface LocalizedName { | ||
[lang: string]: string; | ||
} | ||
export interface Field { | ||
name: string; | ||
type: string; | ||
value: any; | ||
} | ||
export interface Table { | ||
[propName: string]: any; | ||
encode(): number[]; | ||
fields: Field[]; | ||
sizeOf(): number; | ||
tables: Table[]; | ||
tableName: string; | ||
} | ||
export class Font { | ||
tables: {[tableName: string]: Table}; | ||
} | ||
export function parse(buffer: any): Font; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters