diff --git a/lib/modules/objects/infrastructure.d.ts b/lib/modules/objects/infrastructure.d.ts index cbd858d..4adc875 100644 --- a/lib/modules/objects/infrastructure.d.ts +++ b/lib/modules/objects/infrastructure.d.ts @@ -153,7 +153,7 @@ export type OptionalKeys = { * type U = HasProperty<{ a?: 'a'; b?: 'b'; c: 'c' }, 'c'> * // ^? true */ -export type HasProperty = K extends KeysOfUnion ? true : false; +export type HasProperty = K extends KeysOfUnion ? true : false; /** * Convert specific properties of an object `T` to readonly. diff --git a/lib/readable-test-types/index.d.ts b/lib/readable-test-types/index.d.ts index 8d94dc6..4b353bd 100644 --- a/lib/readable-test-types/index.d.ts +++ b/lib/readable-test-types/index.d.ts @@ -25,6 +25,7 @@ import { IsFalse, AnyObject, Opaque, + HasProperty, } from '../modules/infrastructure'; import { FailMsgs } from './messages'; @@ -120,7 +121,7 @@ interface IValidationsPublic { toBePromise: propertyCallableOnPass, I, 'promise'>; /** Type should has the property passed */ - toHaveProperty: >>> extends true ? Readonly : FAIL['property']>>(v?: U) => void; + toHaveProperty: > extends true ? Readonly : FAIL['property']>>(v?: U) => void; } type IValidationsInternal = IValidationsPublic & {