1 | declare global {
|
2 | interface Function {
|
3 | __wrapped?: boolean | undefined;
|
4 | }
|
5 | }
|
6 |
|
7 | declare const shimmer: {
|
8 | (options: { logger?(msg: string): void }): void;
|
9 | wrap<Nodule extends object, FieldName extends keyof Nodule>(
|
10 | nodule: Nodule,
|
11 | name: FieldName,
|
12 | wrapper: (original: Nodule[FieldName]) => Nodule[FieldName],
|
13 | ): void;
|
14 | massWrap<Nodule extends object, FieldName extends keyof Nodule>(
|
15 | nodules: Nodule[],
|
16 | names: FieldName[],
|
17 | wrapper: (original: Nodule[FieldName]) => Nodule[FieldName],
|
18 | ): void;
|
19 | unwrap<Nodule extends object>(
|
20 | nodule: Nodule,
|
21 | name: keyof Nodule,
|
22 | ): void;
|
23 | massUnwrap<Nodule extends object>(
|
24 | nodules: Nodule[],
|
25 | names: Array<keyof Nodule>,
|
26 | ): void;
|
27 | };
|
28 |
|
29 | export = shimmer;
|