UNPKG

@glimmer/interfaces

Version:
13 lines (10 loc) 218 B
import { Option } from './core'; export interface Stack<T> { current: Option<T>; size: number; push(item: T): void; pop(): Option<T>; nth(from: number): Option<T>; isEmpty(): boolean; toArray(): T[]; }