lux-framework
Version:
Build scalable, Node.js-powered REST APIs with almost no code.
16 lines (13 loc) • 305 B
JavaScript
// @flow
export interface Lux$Collection<T> {
size: number;
has(key: T): boolean;
clear(): void;
delete(key: T): boolean;
values(): Iterator<T>;
}
export interface Chain<T> {
pipe<U>(handler: (value: T) => U): Chain<U>;
value(): T;
construct<U, V: Class<U>>(constructor: V): Chain<U>;
}