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