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 ab6bacd commit 62711cfCopy full SHA for 62711cf
1 file changed
src/runner/runner.ts
@@ -0,0 +1,9 @@
1
+import { Constructor } from "type-fest";
2
+
3
+export abstract class Runner {
4
+ static create<T>(this: Constructor<T>, ...args: unknown[]): T {
5
+ return new this(...args);
6
+ }
7
8
+ abstract run(...args: unknown[]): Promise<void>;
9
+}
0 commit comments