Skip to content

Commit 2197c65

Browse files
karol-majewskigr2m
authored andcommitted
refactor: make TypeScript compilation with --declaration happy
fixes #1
1 parent bcea9ba commit 2197c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

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

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

3232
type Extension = ReturnTypeOf<T>;
3333
return BaseWithPlugins as typeof BaseWithPlugins & Constructor<Extension>;

0 commit comments

Comments
 (0)