UNPKG

@infinite-canvas-tutorial/webcomponents

Version:
9 lines (8 loc) 313 B
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>;