mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
10 lines
192 B
TypeScript
10 lines
192 B
TypeScript
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;
|