UNPKG

typegpu

Version:

A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.

18 lines (17 loc) 430 B
export interface NotAllowed<TMsg> { reason: TMsg; } export type ExtensionGuard<TFlag, TMsg, TAllowed> = boolean extends TFlag ? NotAllowed<TMsg> | TAllowed : TAllowed; export interface StorageFlag { usableAsStorage: true; } /** * @deprecated Use StorageFlag instead. */ export type Storage = StorageFlag; /** * @category Errors */ export declare class NotStorageError extends Error { constructor(value: object); }