/** * An implementation of the built-in `Partial` utility that allows explicit * `undefined` values when * [exactOptionalPropertyTypes](https://www.typescriptlang.org/tsconfig#exactOptionalPropertyTypes) * is enabled. */ export type PartialExactOptional = { [P in keyof T]?: T[P] | undefined; }; type FunctionComparisonEqualsWrapped = T extends (T extends Readonly<{}> ? infer R & Readonly<{}> : infer R) ? { [P in keyof R]: R[P]; } : never; type FunctionComparisonEquals = (() => T extends FunctionComparisonEqualsWrapped ? 1 : 2) extends () => T extends FunctionComparisonEqualsWrapped ? 1 : 2 ? true : false; type IsAny = FunctionComparisonEquals; type InvariantComparisonEqualsWrapped = { value: T; setValue: (value: T) => never; }; type InvariantComparisonEquals = InvariantComparisonEqualsWrapped extends InvariantComparisonEqualsWrapped ? IsAny extends true ? IsAny | IsAny extends true ? true : false : true : false; type Equals = InvariantComparisonEquals extends true ? FunctionComparisonEquals : false; export type AssertTypesEqual = Equals extends true ? true : never; export {}; //# sourceMappingURL=type-utils.d.ts.map