UNPKG

ts-cast

Version:
7 lines (6 loc) 250 B
export declare const joinNames: (names: string[], conjunction: string) => string; type WithName<T> = T extends (...args: any) => any ? T : T & { name: string; }; export declare const withName: <T>(obj: T, name: string) => WithName<T>; export {};