UNPKG

789 BTypeScriptView Raw
1declare const makeSlotClass: () => {
2 new <TValue>(): {
3 readonly id: string;
4 hasValue(): boolean;
5 getValue(): TValue | undefined;
6 withValue<TResult, TArgs extends any[], TThis = any>(value: TValue, callback: (this: TThis, ...args: TArgs) => TResult, args?: TArgs | undefined, thisArg?: TThis | undefined): TResult;
7 };
8 bind<TArgs_1 extends any[], TResult_1, TThis_1 = any>(callback: (this: TThis_1, ...args: TArgs_1) => TResult_1): (this: TThis_1, ...args: TArgs_1) => TResult_1;
9 noContext<TResult_2, TArgs_2 extends any[], TThis_2 = any>(callback: (this: TThis_2, ...args: TArgs_2) => TResult_2, args?: TArgs_2 | undefined, thisArg?: TThis_2 | undefined): TResult_2;
10};
11export declare const Slot: ReturnType<typeof makeSlotClass>;
12export {};
13
\No newline at end of file