UNPKG

875 BTypeScriptView Raw
1import { IODataParser } from "./parsers.js";
2import { IFetchOptions, IRequestClient } from "@pnp/common";
3import { IQueryableData } from "./queryable.js";
4import { PipelineMethod } from "./pipeline.js";
5export interface IRequestOptions<T> extends IFetchOptions {
6 parser: IODataParser<T>;
7}
8export interface IClientFactoryBinder {
9 (clientFactory: () => IRequestClient): IMethodBinder;
10}
11export interface IPipelineBinder {
12 (pipeline: PipelineMethod<any>[]): IClientFactoryBinder;
13}
14export interface IMethodBinder {
15 (method: string): IOperation;
16}
17export interface IOperation {
18 <ReturnType>(o: Partial<IQueryableData<ReturnType>>): Promise<ReturnType>;
19}
20export declare function pipelineBinder(pipes: PipelineMethod<any>[]): IClientFactoryBinder;
21export declare const defaultPipelineBinder: IClientFactoryBinder;
22//# sourceMappingURL=pipeline-binder.d.ts.map
\No newline at end of file