UNPKG

810 BTypeScriptView Raw
1import { Maybe } from '@glimmer/interfaces';
2export declare type Factory<T> = new (...args: unknown[]) => T;
3export declare const HAS_NATIVE_PROXY: boolean;
4export declare const HAS_NATIVE_SYMBOL: boolean;
5export declare function keys<T>(obj: T): Array<keyof T>;
6export declare function unwrap<T>(val: Maybe<T>): T;
7export declare function expect<T>(val: Maybe<T>, message: string): T;
8export declare function unreachable(message?: string): Error;
9export declare function exhausted(value: never): never;
10export declare type Lit = string | number | boolean | undefined | null | void | {};
11export declare const tuple: <T extends Lit[]>(...args: T) => T;
12export declare function enumerableSymbol(key: string): any;
13export declare const symbol: typeof enumerableSymbol;
14//# sourceMappingURL=platform-utils.d.ts.map
\No newline at end of file