yummies 7.4.0 → 7.5.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yummies",
3
- "version": "7.4.0",
3
+ "version": "7.5.0",
4
4
  "keywords": [
5
5
  "javascript",
6
6
  "typescript",
package/types.d.ts CHANGED
@@ -49,6 +49,12 @@ type NotNullable<T> = Exclude<T, null>;
49
49
  * @returns Record with any keys and any values
50
50
  */
51
51
  type AnyObject = Record<keyof any, any>;
52
+ /**
53
+ * Represents dictionary with any keys and expecting values;
54
+ *
55
+ * @returns Record with any keys and values
56
+ */
57
+ type Dict<TValues = any, TKeys extends keyof any = keyof any> = Record<TKeys, TValues>;
52
58
  /**
53
59
  * Represents an empty object with no properties.
54
60
  *
@@ -438,4 +444,4 @@ type AnyBoolean = boolean & {};
438
444
  */
439
445
  type UpperFirst<S extends string> = S extends `${infer F}${infer R}` ? `${Uppercase<F>}${R}` : S;
440
446
 
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 };
447
+ export type { AllPropertiesOptional, AnyBoolean, AnyFunction, AnyNumber, AnyObject, AnyPrimitive, AnyString, BrowserNativeObject, Class, CopyObject, DeepPartial, Defined, Dict, 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
@@ -50,6 +50,12 @@ type NotNullable<T> = Exclude<T, null>;
50
50
  * @returns Record with any keys and any values
51
51
  */
52
52
  type AnyObject = Record<keyof any, any>;
53
+ /**
54
+ * Represents dictionary with any keys and expecting values;
55
+ *
56
+ * @returns Record with any keys and values
57
+ */
58
+ type Dict<TValues = any, TKeys extends keyof any = keyof any> = Record<TKeys, TValues>;
53
59
  /**
54
60
  * Represents an empty object with no properties.
55
61
  *