1 | import { ITypedHash } from "@pnp/common";
|
2 | export declare type ValidProxyMethods = "apply" | "get" | "has" | "set";
|
3 | export declare type ExtensionDelegateType<T extends Record<string, unknown>> = {
|
4 | (op: string, target: T, ...rest: any[]): void;
|
5 | };
|
6 | export declare type ExtensionType<T extends Record<string, unknown> = {}> = Pick<ProxyHandler<T>, ValidProxyMethods> | ExtensionDelegateType<T> | ITypedHash<any>;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare const extendGlobal: (e: ExtensionType | ExtensionType[]) => void;
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare const extendObj: <T extends object>(target: T, extensions: ExtensionType | ExtensionType[]) => T;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare const extendFactory: <T extends (...args: any[]) => any>(factory: T, extensions: ExtensionType | ExtensionType[]) => void;
|
27 |
|
28 |
|
29 |
|
30 | export declare const clearGlobalExtensions: () => void;
|
31 |
|
32 |
|
33 |
|
34 | export declare const disableExtensions: () => void;
|
35 |
|
36 |
|
37 |
|
38 | export declare const enableExtensions: () => void;
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | export declare const applyFactoryExtensions: <T extends object = {}>(factory: (args: any[]) => T, args: any[]) => T;
|
46 | export declare function extensionOrDefault(op: ValidProxyMethods, or: (...args: any[]) => any, target: any, ...rest: any[]): any;
|
47 |
|
\ | No newline at end of file |