@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
20 lines (19 loc) • 662 B
TypeScript
/**
* Waits for provided milliseconds.
* Useful for testing asynchronous operations.
*/
export declare const sleep: (ms: number) => Promise<unknown>;
/**
* Uses performance API to measure callback's execution performance.
*/
export declare const logPerformance: <T>(name: string, callback: () => T) => T;
/**
* Throws a "not implemented" error.
* Useful when implementing a feature partially in development environments.
*/
export declare const notImplementedError: () => never;
/**
* Shows a "not implemented" alert.
* Useful when implementing a feature partially in development environments.
*/
export declare const notImplementedAlert: () => void;