We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b65c49 commit a45f1d1Copy full SHA for a45f1d1
index.ts
@@ -25,12 +25,12 @@ export class Base {
25
static plugin<T extends TestPlugin | TestPlugin[]>(plugin: T) {
26
const currentPlugins = this.plugins;
27
28
- class NewTest extends this {
+ class BaseWithPlugins extends this {
29
static plugins = currentPlugins.concat(plugin);
30
}
31
32
type Extension = ReturnTypeOf<T>;
33
- return NewTest as typeof NewTest & Constructor<Extension>;
+ return BaseWithPlugins as typeof BaseWithPlugins & Constructor<Extension>;
34
35
36
constructor() {
0 commit comments