yummies 7.1.0 → 7.2.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 +5 -1
- package/types.global.d.ts +4 -0
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -55,6 +55,10 @@ type AnyObject = Record<keyof any, any>;
|
|
|
55
55
|
* @returns Record with no keys and no values
|
|
56
56
|
*/
|
|
57
57
|
type EmptyObject = Record<keyof any, never>;
|
|
58
|
+
/**
|
|
59
|
+
* T or T[];
|
|
60
|
+
*/
|
|
61
|
+
type MaybeArray<T> = T | T[];
|
|
58
62
|
/**
|
|
59
63
|
* Represents all primitive types in TypeScript.
|
|
60
64
|
*
|
|
@@ -434,4 +438,4 @@ type AnyBoolean = boolean & {};
|
|
|
434
438
|
*/
|
|
435
439
|
type UpperFirst<S extends string> = S extends `${infer F}${infer R}` ? `${Uppercase<F>}${R}` : S;
|
|
436
440
|
|
|
437
|
-
export type { AllPropertiesOptional, AnyBoolean, AnyFunction, AnyNumber, AnyObject, AnyPrimitive, AnyString, BrowserNativeObject, Class, CopyObject, DeepPartial, Defined, EmptyObject, ExtractEnumKeys, ExtractEnumValues, ExtractObjects, FalsyValues, Fn, HasKey, HasSpecificKey, IfEquals, IndexKeys, IsAny, IsArray, IsEmptyArray, IsFunction, IsObject, IsObjectEmpty, IsPartial, IsUnknown, KeyOfByValue, LiteralUnion, Maybe, MaybeFalsy, MaybeFn, MaybePromise, MaybeValues, NonReadonly, NonUndefined, NotMaybe, NotNullable, Nullable, OmitByValue, OverrideKey, Params, PartialIf, PartialKeys, PickByValue, Primitive, ReadonlyKeys, RecordEntries, RenameKey, RequiredKeys, UnionToIntersection, Unpromise, UpperFirst, ValueOf, WithRequired, WritableKeys };
|
|
441
|
+
export type { AllPropertiesOptional, AnyBoolean, AnyFunction, AnyNumber, AnyObject, AnyPrimitive, AnyString, BrowserNativeObject, Class, CopyObject, DeepPartial, Defined, EmptyObject, ExtractEnumKeys, ExtractEnumValues, ExtractObjects, FalsyValues, Fn, HasKey, HasSpecificKey, IfEquals, IndexKeys, IsAny, IsArray, IsEmptyArray, IsFunction, IsObject, IsObjectEmpty, IsPartial, IsUnknown, KeyOfByValue, LiteralUnion, Maybe, MaybeArray, MaybeFalsy, MaybeFn, MaybePromise, MaybeValues, NonReadonly, NonUndefined, NotMaybe, NotNullable, Nullable, OmitByValue, OverrideKey, Params, PartialIf, PartialKeys, PickByValue, Primitive, ReadonlyKeys, RecordEntries, RenameKey, RequiredKeys, UnionToIntersection, Unpromise, UpperFirst, ValueOf, WithRequired, WritableKeys };
|
package/types.global.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ type AnyObject = Record<keyof any, any>;
|
|
|
56
56
|
* @returns Record with no keys and no values
|
|
57
57
|
*/
|
|
58
58
|
type EmptyObject = Record<keyof any, never>;
|
|
59
|
+
/**
|
|
60
|
+
* T or T[];
|
|
61
|
+
*/
|
|
62
|
+
type MaybeArray<T> = T | T[];
|
|
59
63
|
/**
|
|
60
64
|
* Represents all primitive types in TypeScript.
|
|
61
65
|
*
|