yummies 6.5.0 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types.d.ts +13 -1
- package/types.global.d.ts +12 -0
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -407,5 +407,17 @@ type HasSpecificKey<T, TKey extends string> = HasKey<T, TKey>;
|
|
|
407
407
|
*/
|
|
408
408
|
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
409
409
|
type IsUnknown<T> = [unknown] extends [T] ? true : false;
|
|
410
|
+
/**
|
|
411
|
+
* Helpful to use with union type literals (`'str1' | 'str2' | AnyString`)
|
|
412
|
+
*/
|
|
413
|
+
type AnyString = string & {};
|
|
414
|
+
/**
|
|
415
|
+
* Helpful to use with union type literals (`1 | 2 | AnyNumber`)
|
|
416
|
+
*/
|
|
417
|
+
type AnyNumber = number & {};
|
|
418
|
+
/**
|
|
419
|
+
* Helpful to use with union type literals (`true | AnyBoolean`)
|
|
420
|
+
*/
|
|
421
|
+
type AnyBoolean = boolean & {};
|
|
410
422
|
|
|
411
|
-
export type { AllPropertiesOptional, AnyFunction, AnyObject, AnyPrimitive, BrowserNativeObject, Class, CopyObject, DeepPartial, Defined, EmptyObject, ExtractEnumKeys, ExtractEnumValues, ExtractObjects, FalsyValues, HasKey, HasSpecificKey, IfEquals, IndexKeys, IsAny, IsArray, IsEmptyArray, IsFunction, IsObject, IsObjectEmpty, IsPartial, IsUnknown, KeyOfByValue, LiteralUnion, Maybe, MaybeFalsy, MaybeFn, MaybePromise, MaybeValues, NonReadonly, NonUndefined, Nullable, OmitByValue, OverrideKey, Params, PartialIf, PartialKeys, PickByValue, Primitive, ReadonlyKeys, RecordEntries, RenameKey, RequiredKeys, UnionToIntersection, Unpromise, ValueOf, WithRequired, WritableKeys };
|
|
423
|
+
export type { AllPropertiesOptional, AnyBoolean, AnyFunction, AnyNumber, AnyObject, AnyPrimitive, AnyString, BrowserNativeObject, Class, CopyObject, DeepPartial, Defined, EmptyObject, ExtractEnumKeys, ExtractEnumValues, ExtractObjects, FalsyValues, HasKey, HasSpecificKey, IfEquals, IndexKeys, IsAny, IsArray, IsEmptyArray, IsFunction, IsObject, IsObjectEmpty, IsPartial, IsUnknown, KeyOfByValue, LiteralUnion, Maybe, MaybeFalsy, MaybeFn, MaybePromise, MaybeValues, NonReadonly, NonUndefined, Nullable, OmitByValue, OverrideKey, Params, PartialIf, PartialKeys, PickByValue, Primitive, ReadonlyKeys, RecordEntries, RenameKey, RequiredKeys, UnionToIntersection, Unpromise, ValueOf, WithRequired, WritableKeys };
|
package/types.global.d.ts
CHANGED
|
@@ -408,4 +408,16 @@ type HasSpecificKey<T, TKey extends string> = HasKey<T, TKey>;
|
|
|
408
408
|
*/
|
|
409
409
|
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
410
410
|
type IsUnknown<T> = [unknown] extends [T] ? true : false;
|
|
411
|
+
/**
|
|
412
|
+
* Helpful to use with union type literals (`'str1' | 'str2' | AnyString`)
|
|
413
|
+
*/
|
|
414
|
+
type AnyString = string & {};
|
|
415
|
+
/**
|
|
416
|
+
* Helpful to use with union type literals (`1 | 2 | AnyNumber`)
|
|
417
|
+
*/
|
|
418
|
+
type AnyNumber = number & {};
|
|
419
|
+
/**
|
|
420
|
+
* Helpful to use with union type literals (`true | AnyBoolean`)
|
|
421
|
+
*/
|
|
422
|
+
type AnyBoolean = boolean & {};
|
|
411
423
|
|