UNPKG

type-plus

Version:
6 lines 342 B
import type { AnyRecord } from './AnyRecord.js'; export type ReplaceProperty<T extends AnyRecord, K extends keyof T, V> = Omit<T, K> & { [P in K]: V; }; export declare function replaceProperty<T extends AnyRecord, K extends keyof T, V>(subject: T, key: K, value: V): ReplaceProperty<T, K, V>; //# sourceMappingURL=replaceProperty.d.ts.map