UNPKG

756 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_2>(callback: (...args: TArgs_1) => TResult_2): (...args: TArgs_1) => TResult_2;
9 noContext<TResult_3, TArgs_2 extends any[], TThis_1 = any>(callback: (this: TThis_1, ...args: TArgs_2) => TResult_3, args?: TArgs_2 | undefined, thisArg?: TThis_1 | undefined): TResult_3;
10};
11export declare const Slot: ReturnType<typeof makeSlotClass>;
12export {};
13
\No newline at end of file