TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

Incomplete font related declarations

Open jozefchutka opened this issue 2 years ago • 1 comments

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>;
}

jozefchutka avatar May 08 '23 07:05 jozefchutka

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

HolgerJeromin avatar May 08 '23 07:05 HolgerJeromin