@infinite-canvas-tutorial/webcomponents
Version:
WebComponents UI implementation
9 lines (8 loc) • 313 B
TypeScript
export declare function checkWebGPUSupport(): Promise<void>;
/**
* Transforms array of objects containing `id` attribute,
* or array of ids (strings), into a Map, keyd by `id`.
*/
export declare const arrayToMap: <T extends {
id: string;
} | string>(items: readonly T[] | Map<string, T>) => Map<any, any>;