flooent
Version:
Fluent interface to provide an expressive syntax for common manipulations.
7 lines (6 loc) • 318 B
TypeScript
export declare type Constructor<T> = new (...args: any[]) => T;
export declare type CopyFunction<TFn, TR> = TFn extends (...a: infer A) => any ? (...a: A) => TR : never;
export declare type MapValue<K, V> = Map<K, V> | [K, V][];
export interface ArrayConstructor<T> extends Function {
from: (value: T[]) => T[];
}