mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 04:11:57 +00:00
feat: Worked with matt to create all the things
This commit is contained in:
9
lib/config/builder/builder.ts
Normal file
9
lib/config/builder/builder.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export class IBuilder<A> {
|
||||
protected constructor(readonly a: A) {}
|
||||
|
||||
public build(): A {
|
||||
return this.a;
|
||||
}
|
||||
}
|
||||
|
||||
export type BuilderExtract<A> = A extends IBuilder<infer B> ? B : never;
|
||||
Reference in New Issue
Block a user