Skip to content

Commit a45f1d1

Browse files
committed
refactor: NewTest -> BaseWithPlugins
1 parent 3b65c49 commit a45f1d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ export class Base {
2525
static plugin<T extends TestPlugin | TestPlugin[]>(plugin: T) {
2626
const currentPlugins = this.plugins;
2727

28-
class NewTest extends this {
28+
class BaseWithPlugins extends this {
2929
static plugins = currentPlugins.concat(plugin);
3030
}
3131

3232
type Extension = ReturnTypeOf<T>;
33-
return NewTest as typeof NewTest & Constructor<Extension>;
33+
return BaseWithPlugins as typeof BaseWithPlugins & Constructor<Extension>;
3434
}
3535

3636
constructor() {

0 commit comments

Comments
 (0)