UNPKG

917 BTypeScriptView Raw
1import { TimelinePipe } from "@pnp/core";
2import { ISPQueryable, SPInit } from "./spqueryable.js";
3export declare class SPFI {
4 protected _root: ISPQueryable;
5 /**
6 * Creates a new instance of the SPFI class
7 *
8 * @param root Establishes a root url/configuration
9 */
10 constructor(root?: SPInit);
11 /**
12 * Applies one or more behaviors which will be inherited by all instances chained from this root
13 *
14 */
15 using(...behaviors: TimelinePipe[]): this;
16 /**
17 * Used by extending classes to create new objects directly from the root
18 *
19 * @param factory The factory for the type of object to create
20 * @returns A configured instance of that object
21 */
22 protected create<T extends ISPQueryable>(factory: (q: ISPQueryable, path?: string) => T, path?: string): T;
23}
24export declare function spfi(root?: SPInit | SPFI): SPFI;
25//# sourceMappingURL=fi.d.ts.map
\No newline at end of file