Skip to content

Commit 62711cf

Browse files
author
rocketraccoon
committed
return runner
1 parent ab6bacd commit 62711cf

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/runner/runner.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)