@zayne-labs/toolkit-type-helpers 0.9.28 → 0.9.29

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.
@@ -13,6 +13,7 @@ type NonEmptyArray<TArrayItem> = [TArrayItem, ...TArrayItem[]];
13
13
  type UnknownObject = UnmaskType<Record<string, unknown>>;
14
14
  type EmptyObject = NonNullable<unknown>;
15
15
  type UnknownObjectWithAnyKey = UnmaskType<Record<keyof any, unknown>>;
16
+ type Awaitable<TValue> = Promise<TValue> | TValue;
16
17
  type AnyObject = UnmaskType<Record<keyof any, any>>;
17
18
  type AnyFunction<TResult = any> = UnmaskType<(...args: any[]) => TResult>;
18
19
  type AnyAsyncFunction<TResult = any> = UnmaskType<(...args: any[]) => Promise<TResult>>;
@@ -113,4 +114,4 @@ declare const assert: AssertFn;
113
114
  declare const defineEnum: <const TValue, TVariant extends WriteableVariantUnion = "shallow">(value: TValue) => Prettify<Writeable<TValue, TVariant>>;
114
115
  declare const defineEnumDeep: <const TValue, TVariant extends WriteableVariantUnion = "deep">(value: TValue) => Prettify<Writeable<TValue, TVariant>>;
115
116
 
116
- export { type AnyAsyncFunction, type AnyFunction, type AnyNumber, type AnyObject, type AnyString, AssertionError, type CallbackFn, type EmptyObject, type ExtractUnion, type LiteralUnion, type NonEmptyArray, type NonFalsy, type Prettify, type PrettyOmit, type PrettyPick, type SelectorFn, type UnionDiscriminator, type UnionToIntersection, type UnknownObject, type UnknownObjectWithAnyKey, type UnmaskType, type Writeable, type WriteableVariantUnion, assert, assertDefined, assertENV, defineEnum, defineEnumDeep, hasObjectPrototype, isArray, isAsyncFunction, isBoolean, isFile, isFormData, isFunction, isIterable, isNumber, isObject, isObjectAndNotArray, isPlainObject, isString, isSymbol };
117
+ export { type AnyAsyncFunction, type AnyFunction, type AnyNumber, type AnyObject, type AnyString, AssertionError, type Awaitable, type CallbackFn, type EmptyObject, type ExtractUnion, type LiteralUnion, type NonEmptyArray, type NonFalsy, type Prettify, type PrettyOmit, type PrettyPick, type SelectorFn, type UnionDiscriminator, type UnionToIntersection, type UnknownObject, type UnknownObjectWithAnyKey, type UnmaskType, type Writeable, type WriteableVariantUnion, assert, assertDefined, assertENV, defineEnum, defineEnumDeep, hasObjectPrototype, isArray, isAsyncFunction, isBoolean, isFile, isFormData, isFunction, isIterable, isNumber, isObject, isObjectAndNotArray, isPlainObject, isString, isSymbol };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zayne-labs/toolkit-type-helpers",
3
3
  "type": "module",
4
- "version": "0.9.28",
4
+ "version": "0.9.29",
5
5
  "description": "A collection of utility functions, types and composables used by my other projects. Nothing too fancy but can be useful.",
6
6
  "author": "Ryan Zayne",
7
7
  "license": "MIT",
@@ -23,9 +23,6 @@
23
23
  ".": "./dist/esm/index.js",
24
24
  "./resets/*": "./dist/resets/*.d.ts"
25
25
  },
26
- "main": "./dist/esm/index.js",
27
- "module": "./dist/esm/index.js",
28
- "types": "./dist/esm/index.d.ts",
29
26
  "files": [
30
27
  "dist"
31
28
  ],