UNPKG

563 BTypeScriptView Raw
1import { IQueryable } from "./queryable.js";
2import { IRequestContext } from "./pipeline.js";
3export declare type IHybrid<R = any, T = any> = T & {
4 (this: T, ...args: any[]): Promise<R>;
5};
6export declare type IInvoker<R> = (this: IQueryable<any>, ...args: any[]) => Promise<R>;
7export declare const invokableFactory: <R>(constructor: new (...args: any[]) => any) => (...args: any[]) => R & IInvokable<any>;
8export interface IInvokable<R = any> {
9 <T = R>(options?: Partial<IRequestContext<T>>): Promise<T>;
10}
11//# sourceMappingURL=invokable-binder.d.ts.map
\No newline at end of file