UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

17 lines (15 loc) 669 B
import { IsBoundedRecord } from "./IsBoundedRecord-DZF2NbZ8.js"; //#region src/internal/types/BoundedPartial.d.ts /** * Records with an unbounded set of keys have different semantics to those with * a bounded set of keys when using 'noUncheckedIndexedAccess', the former * being implicitly `Partial` whereas the latter are implicitly `Required`. * * @example * BoundedPartial<{ a: number }>; //=> { a?: number } * BoundedPartial<Record<string, number>>; //=> Record<string, number> */ type BoundedPartial<T> = IsBoundedRecord<T> extends true ? Partial<T> : T; //#endregion export { BoundedPartial }; //# sourceMappingURL=BoundedPartial-DcqEen1S.d.ts.map