Files
start-sdk/lib/config/builder/builder.ts
2023-03-27 17:07:17 -06:00

12 lines
237 B
TypeScript

import { typeFromProps } 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;