UNPKG

1.35 kBTypeScriptView Raw
1import { TimelinePipe } from "@pnp/core";
2import { ISPQueryable } from "./spqueryable.js";
3declare module "./fi" {
4 interface SPFI {
5 /**
6 * Creates a batch behavior and associated execute function
7 *
8 */
9 batched(props?: ISPBatchProps): [SPFI, () => Promise<void>];
10 }
11}
12declare module "./webs/types" {
13 interface _Web {
14 /**
15 * Creates a batch behavior and associated execute function
16 *
17 */
18 batched(props?: ISPBatchProps): [IWeb, () => Promise<void>];
19 }
20}
21interface ISPBatchProps {
22 /**
23 * Controls the headers copied from the original request into the batched request, applied to all items
24 * default: /Accept|Content-Type|IF-Match/i
25 */
26 headersCopyPattern?: RegExp;
27}
28/**
29 * Creates a batched version of the supplied base, meaning that all chained fluent operations from the new base are part of the batch
30 *
31 * @param base The base from which to initialize the batch
32 * @param props Any properties used to initialize the batch functionality
33 * @returns A tuple of [behavior used to assign objects to the batch, the execute function used to resolve the batch requests]
34 */
35export declare function createBatch(base: ISPQueryable, props?: ISPBatchProps): [TimelinePipe, () => Promise<void>];
36export {};
37//# sourceMappingURL=batching.d.ts.map
\No newline at end of file