Skip to content

Commit 3e64163

Browse files
build(release): index.js & index.d.ts for 2.0.3
[skip ci]
1 parent 9d05e5b commit 3e64163

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

index.d.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ declare type Options = {
22
[key: string]: unknown;
33
};
44
declare type ApiExtension = {
5-
[key: string]: any;
5+
[key: string]: unknown;
66
};
77
declare type TestPlugin = (instance: Base, options: Options) => ApiExtension | undefined;
88
declare type Constructor<T> = new (...args: any[]) => T;
@@ -17,17 +17,10 @@ export declare class Base {
1717
static plugins: TestPlugin[];
1818
static plugin<S extends Constructor<any> & {
1919
plugins: any[];
20-
}, T1 extends TestPlugin, T2 extends TestPlugin[]>(this: S, plugin1: T1, ...additionalPlugins: T2): {
21-
new (...args: any[]): {
22-
[x: string]: any;
23-
};
20+
}, T1 extends TestPlugin, T2 extends TestPlugin[]>(this: S, plugin1: T1, ...additionalPlugins: T2): S & {
2421
plugins: any[];
25-
} & S & Constructor<UnionToIntersection<ReturnTypeOf<T1> & ReturnTypeOf<T2>>>;
26-
static defaults<S extends Constructor<any>>(this: S, defaults: Options): {
27-
new (...args: any[]): {
28-
[x: string]: any;
29-
};
30-
} & S;
22+
} & Constructor<UnionToIntersection<ReturnTypeOf<T1> & ReturnTypeOf<T2>>>;
23+
static defaults<S extends Constructor<any>>(this: S, defaults: Options): S;
3124
constructor(options?: Options);
3225
options: Options;
3326
}

0 commit comments

Comments
 (0)