UNPKG

typedash

Version:

modern, type-safe collection of utility functions

15 lines (14 loc) 806 B
import { t as CastToString } from "./CastToString-Dm1m4Kgs.js"; import { t as KeysOfUnion } from "./KeysOfUnion-CRGM1li-.js"; import { Get, UnionToIntersection } from "type-fest"; //#region src/types/PropertyValueOfUnion.d.ts /** * Similar to `T[K]`, but gets the value of all the types in a union. */ type PropertyValueOfUnion<T extends object, K extends KeysOfUnion<T>> = Get<UnionToIntersection<T>, K & string>; //#endregion //#region src/functions/_internal/filterObject/createObjectPredicate.d.ts type ObjectPredicate<T extends object> = (value: Exclude<PropertyValueOfUnion<T, KeysOfUnion<T>>, undefined>, key: CastToString<KeysOfUnion<T>>, object: T) => boolean; //#endregion export { PropertyValueOfUnion as n, ObjectPredicate as t }; //# sourceMappingURL=createObjectPredicate-BP5NLXCL.d.ts.map