TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Incomplete font related declarations
Font related:
type FontData = {
readonly family:string;
readonly fullName:string;
readonly postscriptName:string;
readonly style:string;
}
const queryLocalFonts:undefined | (() => Promise<ReadonlyArray<FontData>>);
// https://developer.mozilla.org/en-US/docs/Web/API/Window/queryLocalFonts
interface Permissions {
query(permissionDesc:{name:"local-fonts"}): Promise<PermissionStatus>;
}
Will be solved (automatically?) when there is better browser support:
https://github.com/microsoft/TypeScript-DOM-lib-generator#why-is-my-fancy-api-still-not-available-here