UNPKG

korimsoft-tyfun

Version:

Korimsoft's TyFun - A library of TypeScript functions, types, helpers, and utilities

10 lines 378 B
type WithMethodName<K extends string> = `with${Capitalize<K>}`; type BuilderMethods<T> = { [K in keyof T as WithMethodName<K & string>]: (value: T[K]) => Builder<T>; }; export type Builder<T> = BuilderMethods<T> & { build: () => T; }; export declare function aBuilder<T extends Object>(template?: Partial<T>): Builder<T>; export {}; //# sourceMappingURL=builder.d.ts.map