UNPKG

551 BTypeScriptView Raw
1import { Dict, Option, Stack } from '@glimmer/interfaces';
2export declare function dict<T = unknown>(): Dict<T>;
3export declare function isDict<T>(u: T): u is Dict & T;
4export declare function isObject<T>(u: T): u is object & T;
5export declare class StackImpl<T> implements Stack<T> {
6 private stack;
7 current: Option<T>;
8 constructor(values?: T[]);
9 get size(): number;
10 push(item: T): void;
11 pop(): Option<T>;
12 nth(from: number): Option<T>;
13 isEmpty(): boolean;
14 toArray(): T[];
15}
16//# sourceMappingURL=collections.d.ts.map
\No newline at end of file