mini-signals
Version:
signals, in TypeScript, fast
15 lines (14 loc) • 495 B
TypeScript
export type BoundFunction<T extends any[] = any[], A = any> = (thisArg: A, ...args: T) => void;
export declare class MiniSignalBinding<T extends any[] = any[], A = any> {
readonly _fn: BoundFunction<T, A>;
readonly _once: boolean;
readonly _thisArg?: A | undefined;
_next?: any;
_prev?: any;
_owner?: any;
/**
* MiniSignalBinding constructor.
*/
constructor(_fn: BoundFunction<T, A>, _once?: boolean, _thisArg?: A | undefined);
detach(): boolean;
}