mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 18:31:54 +00:00
11 lines
223 B
TypeScript
11 lines
223 B
TypeScript
import { _ } from "../../util";
|
|
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;
|