@zayne-labs/toolkit-type-helpers 0.12.36 → 0.12.37
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/dist/esm/index.d.ts +13 -7
- package/dist/esm/index.js.map +1 -1
- package/package.json +4 -4
package/dist/esm/index.d.ts
CHANGED
|
@@ -136,27 +136,33 @@ type DefineEnumOptions = {
|
|
|
136
136
|
writeableLevel?: WriteableLevel;
|
|
137
137
|
};
|
|
138
138
|
type DefaultDefineEnumOptions = {
|
|
139
|
-
inferredUnionVariant: "
|
|
139
|
+
inferredUnionVariant: "none";
|
|
140
140
|
writeableLevel: "shallow";
|
|
141
141
|
};
|
|
142
|
-
type Enum<TValue extends object, TInferredUnionVariant extends InferredUnionVariant> = TValue & {
|
|
142
|
+
type Enum<TValue extends object, TInferredUnionVariant extends InferredUnionVariant> = UnmaskType<TValue & {
|
|
143
143
|
$inferUnion: ExtractUnion<TValue, TInferredUnionVariant>;
|
|
144
|
-
}
|
|
144
|
+
}>;
|
|
145
145
|
declare const defineEnum: <const TValue extends object, TOptions extends DefineEnumOptions = DefineEnumOptions, TComputedWriteableLevel extends NonNullable<DefineEnumOptions["writeableLevel"]> = (undefined extends (TOptions["writeableLevel"]) ? DefaultDefineEnumOptions["writeableLevel"] : NonNullable<TOptions["writeableLevel"]>), TComputedInferredUnionVariant extends NonNullable<DefineEnumOptions["inferredUnionVariant"]> = (undefined extends TOptions["inferredUnionVariant"] ? DefaultDefineEnumOptions["inferredUnionVariant"] : NonNullable<TOptions["inferredUnionVariant"]>)>(value: TValue, _options?: TOptions) => TComputedInferredUnionVariant extends InferredUnionVariant ? Enum<Writeable<TValue, TComputedWriteableLevel>, TComputedInferredUnionVariant> : Writeable<TValue, TComputedWriteableLevel>;
|
|
146
146
|
type DefineEnumDeepOptions = Pick<DefineEnumOptions, "inferredUnionVariant">;
|
|
147
147
|
declare const defineEnumDeep: <const TValue extends object, TOptions extends DefineEnumDeepOptions = DefineEnumDeepOptions>(value: TValue, _options?: TOptions) => (undefined extends (TOptions & {
|
|
148
148
|
writeableLevel: "deep";
|
|
149
|
-
})["inferredUnionVariant"] ? "
|
|
149
|
+
})["inferredUnionVariant"] ? "none" : NonNullable<(TOptions & {
|
|
150
150
|
writeableLevel: "deep";
|
|
151
151
|
})["inferredUnionVariant"]>) extends infer T ? T extends (undefined extends (TOptions & {
|
|
152
152
|
writeableLevel: "deep";
|
|
153
|
-
})["inferredUnionVariant"] ? "
|
|
153
|
+
})["inferredUnionVariant"] ? "none" : NonNullable<(TOptions & {
|
|
154
154
|
writeableLevel: "deep";
|
|
155
|
-
})["inferredUnionVariant"]>) ? T extends InferredUnionVariant ?
|
|
155
|
+
})["inferredUnionVariant"]>) ? T extends InferredUnionVariant ? Writeable<TValue, undefined extends (TOptions & {
|
|
156
156
|
writeableLevel: "deep";
|
|
157
157
|
})["writeableLevel"] ? "shallow" : (TOptions & {
|
|
158
158
|
writeableLevel: "deep";
|
|
159
|
-
})["writeableLevel"]
|
|
159
|
+
})["writeableLevel"]> & {
|
|
160
|
+
$inferUnion: ExtractUnion<Writeable<TValue, undefined extends (TOptions & {
|
|
161
|
+
writeableLevel: "deep";
|
|
162
|
+
})["writeableLevel"] ? "shallow" : (TOptions & {
|
|
163
|
+
writeableLevel: "deep";
|
|
164
|
+
})["writeableLevel"]>, T>;
|
|
165
|
+
} : Writeable<TValue, undefined extends (TOptions & {
|
|
160
166
|
writeableLevel: "deep";
|
|
161
167
|
})["writeableLevel"] ? "shallow" : (TOptions & {
|
|
162
168
|
writeableLevel: "deep";
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/guard.ts","../../src/assert.ts","../../src/enum.ts"],"sourcesContent":["import type {\n\tAnyAsyncFunction,\n\tAnyFunction,\n\tUnknownObject,\n\tUnknownObjectWithAnyKey,\n} from \"./type-utils/common\";\n\nexport const isString = (value: unknown) => typeof value === \"string\";\n\nexport const isNumber = (value: unknown) => typeof value === \"number\";\n\nexport const isSymbol = (value: unknown) => typeof value === \"symbol\";\n\nexport const isBoolean = (value: unknown) => typeof value === \"boolean\";\n\nexport const isArray = <TArray>(value: unknown): value is TArray[] => Array.isArray(value);\n\nexport const isSet = <TSet extends Set<unknown>>(value: unknown): value is TSet => value instanceof Set;\n\nexport const isMap = <TMap extends Map<unknown, unknown>>(value: unknown): value is TMap => {\n\treturn value instanceof Map;\n};\n\nexport const isFormData = (value: unknown) => value instanceof FormData;\n\nexport const isObject = <TObject extends object>(value: unknown): value is TObject => {\n\treturn typeof value === \"object\" && value !== null;\n};\n\nexport const isObjectAndNotArray = <TObject = UnknownObject>(value: unknown): value is TObject => {\n\treturn isObject(value) && !isArray(value);\n};\n\nexport const hasObjectPrototype = (value: unknown) => {\n\treturn Object.prototype.toString.call(value) === \"[object Object]\";\n};\n\n/**\n * @description Copied from TanStack Query's isPlainObject\n * @see https://github.com/TanStack/query/blob/main/packages/query-core/src/utils.ts#L321\n */\nexport const isPlainObject = <TPlainObject extends UnknownObjectWithAnyKey = UnknownObject>(\n\tvalue: unknown\n): value is TPlainObject => {\n\tif (!hasObjectPrototype(value)) {\n\t\treturn false;\n\t}\n\n\t// If has no constructor\n\tconst constructor = (value as object | undefined)?.constructor;\n\tif (constructor === undefined) {\n\t\treturn true;\n\t}\n\n\t// If has modified prototype\n\tconst prototype = constructor.prototype as object;\n\tif (!hasObjectPrototype(prototype)) {\n\t\treturn false;\n\t}\n\n\t// If constructor does not have an Object-specific method\n\tif (!Object.hasOwn(prototype, \"isPrototypeOf\")) {\n\t\treturn false;\n\t}\n\n\t// Handles Objects created by Object.create(<arbitrary prototype>)\n\tif (Object.getPrototypeOf(value) !== Object.prototype) {\n\t\treturn false;\n\t}\n\n\t// It's probably a plain object at this point\n\treturn true;\n};\n\nexport const isSerializableObject = (value: unknown) => {\n\treturn (\n\t\tisPlainObject(value)\n\t\t|| isArray(value)\n\t\t|| typeof (value as { toJSON: unknown } | undefined)?.toJSON === \"function\"\n\t);\n};\n\nexport const isValidJsonString = (value: unknown): value is string => {\n\tif (!isString(value)) {\n\t\treturn false;\n\t}\n\n\ttry {\n\t\tJSON.parse(value);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n};\n\nexport const isFunction = <TFunction extends AnyFunction>(value: unknown): value is TFunction => {\n\treturn typeof value === \"function\";\n};\n\nexport const isAsyncFunction = <TAsyncFunction extends AnyAsyncFunction>(\n\tvalue: unknown\n): value is TAsyncFunction => {\n\treturn isFunction(value) && value.constructor.name === \"AsyncFunction\";\n};\n\nexport const isFile = (value: unknown) => value instanceof File;\n\nexport const isBlob = (value: unknown) => value instanceof Blob;\n\nexport const isPromise = (value: unknown) => value instanceof Promise;\n\nexport const isIterable = <TIterable>(obj: object): obj is Iterable<TIterable> => Symbol.iterator in obj;\n\nexport const isJsonString = (value: unknown): value is string => {\n\tif (!isString(value)) {\n\t\treturn false;\n\t}\n\n\ttry {\n\t\tJSON.parse(value);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n};\n\n// https://github.com/unjs/ofetch/blob/main/src/utils.ts\nexport const isJSONSerializable = (value: unknown) => {\n\tif (value === undefined) {\n\t\treturn false;\n\t}\n\tconst t = typeof value;\n\t// eslint-disable-next-line ts-eslint/no-unnecessary-condition -- No time to make this more type-safe\n\tif (t === \"string\" || t === \"number\" || t === \"boolean\" || t === null) {\n\t\treturn true;\n\t}\n\tif (t !== \"object\") {\n\t\treturn false;\n\t}\n\tif (isArray(value)) {\n\t\treturn true;\n\t}\n\tif ((value as Buffer | null)?.buffer) {\n\t\treturn false;\n\t}\n\n\treturn (\n\t\tvalue?.constructor.name === \"Object\"\n\t\t|| typeof (value as { toJSON: () => unknown } | null)?.toJSON === \"function\"\n\t);\n};\n","import { isString } from \"./guard\";\n\nexport class AssertionError extends Error {\n\toverride name = \"AssertionError\";\n\n\tconstructor(message?: string) {\n\t\tconst prefix = \"Assertion failed\";\n\n\t\tsuper(message ? `${prefix}: ${message}` : message);\n\t}\n}\n\nexport const assertDefined = <TValue>(value: TValue) => {\n\tif (value == null) {\n\t\tthrow new AssertionError(`The value passed is \"${value as null | undefined}!\"`);\n\t}\n\n\treturn value;\n};\n\nexport const assertENV = (variable: string | undefined, message?: string) => {\n\tif (variable === undefined) {\n\t\tthrow new AssertionError(message);\n\t}\n\n\treturn variable;\n};\n\ntype AssertOptions = {\n\tmessage: string;\n};\n\ntype AssertFn = {\n\t(condition: boolean, messageOrOptions?: string | AssertOptions): asserts condition;\n\n\t<TValue>(\n\t\tvalue: TValue,\n\t\tmessageOrOptions?: string | AssertOptions\n\t): asserts value is NonNullable<TValue>;\n};\n\nexport const assert: AssertFn = (input: unknown, messageOrOptions?: string | AssertOptions) => {\n\tif (input === false || input == null) {\n\t\tconst message = isString(messageOrOptions) ? messageOrOptions : messageOrOptions?.message;\n\n\t\tthrow new AssertionError(message);\n\t}\n};\n","import type {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/guard.ts","../../src/assert.ts","../../src/enum.ts"],"sourcesContent":["import type {\n\tAnyAsyncFunction,\n\tAnyFunction,\n\tUnknownObject,\n\tUnknownObjectWithAnyKey,\n} from \"./type-utils/common\";\n\nexport const isString = (value: unknown) => typeof value === \"string\";\n\nexport const isNumber = (value: unknown) => typeof value === \"number\";\n\nexport const isSymbol = (value: unknown) => typeof value === \"symbol\";\n\nexport const isBoolean = (value: unknown) => typeof value === \"boolean\";\n\nexport const isArray = <TArray>(value: unknown): value is TArray[] => Array.isArray(value);\n\nexport const isSet = <TSet extends Set<unknown>>(value: unknown): value is TSet => value instanceof Set;\n\nexport const isMap = <TMap extends Map<unknown, unknown>>(value: unknown): value is TMap => {\n\treturn value instanceof Map;\n};\n\nexport const isFormData = (value: unknown) => value instanceof FormData;\n\nexport const isObject = <TObject extends object>(value: unknown): value is TObject => {\n\treturn typeof value === \"object\" && value !== null;\n};\n\nexport const isObjectAndNotArray = <TObject = UnknownObject>(value: unknown): value is TObject => {\n\treturn isObject(value) && !isArray(value);\n};\n\nexport const hasObjectPrototype = (value: unknown) => {\n\treturn Object.prototype.toString.call(value) === \"[object Object]\";\n};\n\n/**\n * @description Copied from TanStack Query's isPlainObject\n * @see https://github.com/TanStack/query/blob/main/packages/query-core/src/utils.ts#L321\n */\nexport const isPlainObject = <TPlainObject extends UnknownObjectWithAnyKey = UnknownObject>(\n\tvalue: unknown\n): value is TPlainObject => {\n\tif (!hasObjectPrototype(value)) {\n\t\treturn false;\n\t}\n\n\t// If has no constructor\n\tconst constructor = (value as object | undefined)?.constructor;\n\tif (constructor === undefined) {\n\t\treturn true;\n\t}\n\n\t// If has modified prototype\n\tconst prototype = constructor.prototype as object;\n\tif (!hasObjectPrototype(prototype)) {\n\t\treturn false;\n\t}\n\n\t// If constructor does not have an Object-specific method\n\tif (!Object.hasOwn(prototype, \"isPrototypeOf\")) {\n\t\treturn false;\n\t}\n\n\t// Handles Objects created by Object.create(<arbitrary prototype>)\n\tif (Object.getPrototypeOf(value) !== Object.prototype) {\n\t\treturn false;\n\t}\n\n\t// It's probably a plain object at this point\n\treturn true;\n};\n\nexport const isSerializableObject = (value: unknown) => {\n\treturn (\n\t\tisPlainObject(value)\n\t\t|| isArray(value)\n\t\t|| typeof (value as { toJSON: unknown } | undefined)?.toJSON === \"function\"\n\t);\n};\n\nexport const isValidJsonString = (value: unknown): value is string => {\n\tif (!isString(value)) {\n\t\treturn false;\n\t}\n\n\ttry {\n\t\tJSON.parse(value);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n};\n\nexport const isFunction = <TFunction extends AnyFunction>(value: unknown): value is TFunction => {\n\treturn typeof value === \"function\";\n};\n\nexport const isAsyncFunction = <TAsyncFunction extends AnyAsyncFunction>(\n\tvalue: unknown\n): value is TAsyncFunction => {\n\treturn isFunction(value) && value.constructor.name === \"AsyncFunction\";\n};\n\nexport const isFile = (value: unknown) => value instanceof File;\n\nexport const isBlob = (value: unknown) => value instanceof Blob;\n\nexport const isPromise = (value: unknown) => value instanceof Promise;\n\nexport const isIterable = <TIterable>(obj: object): obj is Iterable<TIterable> => Symbol.iterator in obj;\n\nexport const isJsonString = (value: unknown): value is string => {\n\tif (!isString(value)) {\n\t\treturn false;\n\t}\n\n\ttry {\n\t\tJSON.parse(value);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n};\n\n// https://github.com/unjs/ofetch/blob/main/src/utils.ts\nexport const isJSONSerializable = (value: unknown) => {\n\tif (value === undefined) {\n\t\treturn false;\n\t}\n\tconst t = typeof value;\n\t// eslint-disable-next-line ts-eslint/no-unnecessary-condition -- No time to make this more type-safe\n\tif (t === \"string\" || t === \"number\" || t === \"boolean\" || t === null) {\n\t\treturn true;\n\t}\n\tif (t !== \"object\") {\n\t\treturn false;\n\t}\n\tif (isArray(value)) {\n\t\treturn true;\n\t}\n\tif ((value as Buffer | null)?.buffer) {\n\t\treturn false;\n\t}\n\n\treturn (\n\t\tvalue?.constructor.name === \"Object\"\n\t\t|| typeof (value as { toJSON: () => unknown } | null)?.toJSON === \"function\"\n\t);\n};\n","import { isString } from \"./guard\";\n\nexport class AssertionError extends Error {\n\toverride name = \"AssertionError\";\n\n\tconstructor(message?: string) {\n\t\tconst prefix = \"Assertion failed\";\n\n\t\tsuper(message ? `${prefix}: ${message}` : message);\n\t}\n}\n\nexport const assertDefined = <TValue>(value: TValue) => {\n\tif (value == null) {\n\t\tthrow new AssertionError(`The value passed is \"${value as null | undefined}!\"`);\n\t}\n\n\treturn value;\n};\n\nexport const assertENV = (variable: string | undefined, message?: string) => {\n\tif (variable === undefined) {\n\t\tthrow new AssertionError(message);\n\t}\n\n\treturn variable;\n};\n\ntype AssertOptions = {\n\tmessage: string;\n};\n\ntype AssertFn = {\n\t(condition: boolean, messageOrOptions?: string | AssertOptions): asserts condition;\n\n\t<TValue>(\n\t\tvalue: TValue,\n\t\tmessageOrOptions?: string | AssertOptions\n\t): asserts value is NonNullable<TValue>;\n};\n\nexport const assert: AssertFn = (input: unknown, messageOrOptions?: string | AssertOptions) => {\n\tif (input === false || input == null) {\n\t\tconst message = isString(messageOrOptions) ? messageOrOptions : messageOrOptions?.message;\n\n\t\tthrow new AssertionError(message);\n\t}\n};\n","import type {\n\tExtractUnion,\n\tInferredUnionVariant,\n\tUnmaskType,\n\tWriteable,\n\tWriteableLevel,\n} from \"./type-utils\";\n\ntype DefineEnumOptions = {\n\tinferredUnionVariant?: \"none\" | InferredUnionVariant;\n\twriteableLevel?: WriteableLevel;\n};\n\ntype DefaultDefineEnumOptions = {\n\tinferredUnionVariant: \"none\";\n\twriteableLevel: \"shallow\";\n};\n\ntype Enum<TValue extends object, TInferredUnionVariant extends InferredUnionVariant> = UnmaskType<\n\tTValue & {\n\t\t$inferUnion: ExtractUnion<TValue, TInferredUnionVariant>;\n\t}\n>;\n\nexport const defineEnum = <\n\tconst TValue extends object,\n\tTOptions extends DefineEnumOptions = DefineEnumOptions,\n\tTComputedWriteableLevel extends NonNullable<DefineEnumOptions[\"writeableLevel\"]> = undefined extends (\n\t\tTOptions[\"writeableLevel\"]\n\t) ?\n\t\tDefaultDefineEnumOptions[\"writeableLevel\"]\n\t:\tNonNullable<TOptions[\"writeableLevel\"]>,\n\tTComputedInferredUnionVariant extends NonNullable<DefineEnumOptions[\"inferredUnionVariant\"]> =\n\t\tundefined extends TOptions[\"inferredUnionVariant\"] ? DefaultDefineEnumOptions[\"inferredUnionVariant\"]\n\t\t:\tNonNullable<TOptions[\"inferredUnionVariant\"]>,\n>(\n\tvalue: TValue,\n\t_options?: TOptions\n) => {\n\treturn value as TComputedInferredUnionVariant extends InferredUnionVariant ?\n\t\tEnum<Writeable<TValue, TComputedWriteableLevel>, TComputedInferredUnionVariant>\n\t:\tWriteable<TValue, TComputedWriteableLevel>;\n};\n\ntype DefineEnumDeepOptions = Pick<DefineEnumOptions, \"inferredUnionVariant\">;\n\nexport const defineEnumDeep = <\n\tconst TValue extends object,\n\tTOptions extends DefineEnumDeepOptions = DefineEnumDeepOptions,\n>(\n\tvalue: TValue,\n\t_options?: TOptions\n) => {\n\ttype ModifiedOptions = TOptions & { writeableLevel: \"deep\" };\n\n\treturn defineEnum<TValue, ModifiedOptions>(value);\n};\n"],"mappings":";AAOA,MAAa,YAAY,UAAmB,OAAO,UAAU;AAE7D,MAAa,YAAY,UAAmB,OAAO,UAAU;AAE7D,MAAa,YAAY,UAAmB,OAAO,UAAU;AAE7D,MAAa,aAAa,UAAmB,OAAO,UAAU;AAE9D,MAAa,WAAmB,UAAsC,MAAM,QAAQ,MAAM;AAE1F,MAAa,SAAoC,UAAkC,iBAAiB;AAEpG,MAAa,SAA6C,UAAkC;AAC3F,QAAO,iBAAiB;;AAGzB,MAAa,cAAc,UAAmB,iBAAiB;AAE/D,MAAa,YAAoC,UAAqC;AACrF,QAAO,OAAO,UAAU,YAAY,UAAU;;AAG/C,MAAa,uBAAgD,UAAqC;AACjG,QAAO,SAAS,MAAM,IAAI,CAAC,QAAQ,MAAM;;AAG1C,MAAa,sBAAsB,UAAmB;AACrD,QAAO,OAAO,UAAU,SAAS,KAAK,MAAM,KAAK;;;;;;AAOlD,MAAa,iBACZ,UAC2B;AAC3B,KAAI,CAAC,mBAAmB,MAAM,CAC7B,QAAO;CAIR,MAAM,cAAe,OAA8B;AACnD,KAAI,gBAAgB,OACnB,QAAO;CAIR,MAAM,YAAY,YAAY;AAC9B,KAAI,CAAC,mBAAmB,UAAU,CACjC,QAAO;AAIR,KAAI,CAAC,OAAO,OAAO,WAAW,gBAAgB,CAC7C,QAAO;AAIR,KAAI,OAAO,eAAe,MAAM,KAAK,OAAO,UAC3C,QAAO;AAIR,QAAO;;AAGR,MAAa,wBAAwB,UAAmB;AACvD,QACC,cAAc,MAAM,IACjB,QAAQ,MAAM,IACd,OAAQ,OAA2C,WAAW;;AAInE,MAAa,qBAAqB,UAAoC;AACrE,KAAI,CAAC,SAAS,MAAM,CACnB,QAAO;AAGR,KAAI;AACH,OAAK,MAAM,MAAM;AACjB,SAAO;SACA;AACP,SAAO;;;AAIT,MAAa,cAA6C,UAAuC;AAChG,QAAO,OAAO,UAAU;;AAGzB,MAAa,mBACZ,UAC6B;AAC7B,QAAO,WAAW,MAAM,IAAI,MAAM,YAAY,SAAS;;AAGxD,MAAa,UAAU,UAAmB,iBAAiB;AAE3D,MAAa,UAAU,UAAmB,iBAAiB;AAE3D,MAAa,aAAa,UAAmB,iBAAiB;AAE9D,MAAa,cAAyB,QAA4C,OAAO,YAAY;AAErG,MAAa,gBAAgB,UAAoC;AAChE,KAAI,CAAC,SAAS,MAAM,CACnB,QAAO;AAGR,KAAI;AACH,OAAK,MAAM,MAAM;AACjB,SAAO;SACA;AACP,SAAO;;;AAKT,MAAa,sBAAsB,UAAmB;AACrD,KAAI,UAAU,OACb,QAAO;CAER,MAAM,IAAI,OAAO;AAEjB,KAAI,MAAM,YAAY,MAAM,YAAY,MAAM,aAAa,MAAM,KAChE,QAAO;AAER,KAAI,MAAM,SACT,QAAO;AAER,KAAI,QAAQ,MAAM,CACjB,QAAO;AAER,KAAK,OAAyB,OAC7B,QAAO;AAGR,QACC,OAAO,YAAY,SAAS,YACzB,OAAQ,OAA4C,WAAW;;;;;AClJpE,IAAa,iBAAb,cAAoC,MAAM;CACzC,AAAS,OAAO;CAEhB,YAAY,SAAkB;AAG7B,QAAM,UAAU,qBAAc,YAAY,QAAQ;;;AAIpD,MAAa,iBAAyB,UAAkB;AACvD,KAAI,SAAS,KACZ,OAAM,IAAI,eAAe,wBAAwB,MAA0B,IAAI;AAGhF,QAAO;;AAGR,MAAa,aAAa,UAA8B,YAAqB;AAC5E,KAAI,aAAa,OAChB,OAAM,IAAI,eAAe,QAAQ;AAGlC,QAAO;;AAgBR,MAAa,UAAoB,OAAgB,qBAA8C;AAC9F,KAAI,UAAU,SAAS,SAAS,KAG/B,OAAM,IAAI,eAFM,SAAS,iBAAiB,GAAG,mBAAmB,kBAAkB,QAEjD;;;;;ACrBnC,MAAa,cAYZ,OACA,aACI;AACJ,QAAO;;AAOR,MAAa,kBAIZ,OACA,aACI;AAGJ,QAAO,WAAoC,MAAM"}
|
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.12.
|
|
4
|
+
"version": "0.12.37",
|
|
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",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"@size-limit/esbuild-why": "^12.0.0",
|
|
37
37
|
"@size-limit/preset-small-lib": "^12.0.0",
|
|
38
38
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
39
|
-
"@types/node": "^25.2.
|
|
40
|
-
"@zayne-labs/tsconfig": "0.11.
|
|
39
|
+
"@types/node": "^25.2.3",
|
|
40
|
+
"@zayne-labs/tsconfig": "0.11.27",
|
|
41
41
|
"clsx": "^2.1.1",
|
|
42
42
|
"concurrently": "^9.2.1",
|
|
43
43
|
"cross-env": "^10.1.0",
|
|
44
44
|
"publint": "^0.3.17",
|
|
45
45
|
"size-limit": "^12.0.0",
|
|
46
|
-
"tsdown": "0.20.
|
|
46
|
+
"tsdown": "0.20.3",
|
|
47
47
|
"typescript": "5.9.3",
|
|
48
48
|
"vitest": "4.0.18"
|
|
49
49
|
},
|