@layerzerolabs/typescript-utils 0.2.107 → 0.2.108
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/3LHZ7V3Z.js +6 -0
- package/dist/{DDDCRYAA.js.map → 3LHZ7V3Z.js.map} +1 -1
- package/dist/6QUS2SE6.js +6 -0
- package/dist/{Q6UBIYTZ.js.map → 6QUS2SE6.js.map} +1 -1
- package/dist/FPYLH7RK.js +6 -0
- package/dist/{KZQATXOW.js.map → FPYLH7RK.js.map} +1 -1
- package/dist/HA75XVBD.js +6 -0
- package/dist/{B5GSIBEU.js.map → HA75XVBD.js.map} +1 -1
- package/dist/I3HQPZG3.js +6 -0
- package/dist/{KEJFF7VD.js.map → I3HQPZG3.js.map} +1 -1
- package/dist/{QDQO2ODJ.js → JNGFICLW.js} +31 -31
- package/dist/JNGFICLW.js.map +1 -0
- package/dist/{6PU5MDDW.js → LBOSJOZV.js} +3 -3
- package/dist/{6PU5MDDW.js.map → LBOSJOZV.js.map} +1 -1
- package/dist/MUP2ZWKH.js +6 -0
- package/dist/{62TVLGZP.js.map → MUP2ZWKH.js.map} +1 -1
- package/dist/NAAXLSE5.js +6 -0
- package/dist/{I5NXBMAF.js.map → NAAXLSE5.js.map} +1 -1
- package/dist/NXYWT3FC.js +6 -0
- package/dist/{V353KAGF.js.map → NXYWT3FC.js.map} +1 -1
- package/dist/PNLZD2U2.js +6 -0
- package/dist/{X6GYSLZB.js.map → PNLZD2U2.js.map} +1 -1
- package/dist/QUJUTVP6.js +6 -0
- package/dist/{TQNP6GIE.js.map → QUJUTVP6.js.map} +1 -1
- package/dist/RI75XMZ2.js +6 -0
- package/dist/{6IUBP3YE.js.map → RI75XMZ2.js.map} +1 -1
- package/dist/S6NNED46.js +6 -0
- package/dist/{TP4DJK6G.js.map → S6NNED46.js.map} +1 -1
- package/dist/S7O2EBBN.js +6 -0
- package/dist/{J7BAXUWJ.js.map → S7O2EBBN.js.map} +1 -1
- package/dist/{GGKJNPTT.js → SCG5YUF6.js} +3 -3
- package/dist/{GGKJNPTT.js.map → SCG5YUF6.js.map} +1 -1
- package/dist/TLUYOTQ3.js +6 -0
- package/dist/{EM7SXG4B.js.map → TLUYOTQ3.js.map} +1 -1
- package/dist/VKIXMBVF.js +6 -0
- package/dist/{CFTTK4D6.js.map → VKIXMBVF.js.map} +1 -1
- package/dist/WQZJ7V44.js +6 -0
- package/dist/{P3JODCMF.js.map → WQZJ7V44.js.map} +1 -1
- package/dist/XL6YBUOB.js +6 -0
- package/dist/{FQ2L5NQU.js.map → XL6YBUOB.js.map} +1 -1
- package/dist/{6AHA7PAZ.js → ZVSZ2LTA.js} +3 -3
- package/dist/{6AHA7PAZ.js.map → ZVSZ2LTA.js.map} +1 -1
- package/dist/advancedRecord.js +2 -2
- package/dist/asyncify.js +2 -2
- package/dist/branded.js +2 -2
- package/dist/constructor.js +2 -2
- package/dist/deep.js +2 -2
- package/dist/deep.test-d.js +2 -2
- package/dist/disallowedAny.js +2 -2
- package/dist/functionalUtils.js +2 -2
- package/dist/identity.js +2 -2
- package/dist/index.js +19 -19
- package/dist/lastOf.js +2 -2
- package/dist/maybeUndefined.js +2 -2
- package/dist/merge.js +2 -2
- package/dist/methodOf.js +2 -2
- package/dist/removeNever.js +2 -2
- package/dist/strings.js +2 -2
- package/dist/strings.test-d.js +2 -2
- package/dist/tuples.js +2 -2
- package/dist/valueOf.js +2 -2
- package/dist/viem.js +2 -2
- package/dist/withRequired.js +2 -2
- package/package.json +4 -4
- package/dist/62TVLGZP.js +0 -6
- package/dist/6IUBP3YE.js +0 -6
- package/dist/B5GSIBEU.js +0 -6
- package/dist/CFTTK4D6.js +0 -6
- package/dist/DDDCRYAA.js +0 -6
- package/dist/EM7SXG4B.js +0 -6
- package/dist/FQ2L5NQU.js +0 -6
- package/dist/I5NXBMAF.js +0 -6
- package/dist/J7BAXUWJ.js +0 -6
- package/dist/KEJFF7VD.js +0 -6
- package/dist/KZQATXOW.js +0 -6
- package/dist/P3JODCMF.js +0 -6
- package/dist/Q6UBIYTZ.js +0 -6
- package/dist/QDQO2ODJ.js.map +0 -1
- package/dist/TP4DJK6G.js +0 -6
- package/dist/TQNP6GIE.js +0 -6
- package/dist/V353KAGF.js +0 -6
- package/dist/X6GYSLZB.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims, __name } from './
|
|
1
|
+
import { init_esm_shims, __name } from './ZVSZ2LTA.js';
|
|
2
2
|
|
|
3
3
|
// src/functionalUtils.ts
|
|
4
4
|
init_esm_shims();
|
|
@@ -11,5 +11,5 @@ var partiallyApply = /* @__PURE__ */ __name((fn, args) => (...argsInner) => fn(.
|
|
|
11
11
|
var uncurry = /* @__PURE__ */ __name((fn) => (argsOuter, argsInner) => fn(...argsOuter)(...argsInner), "uncurry");
|
|
12
12
|
|
|
13
13
|
export { curry, partiallyApply, uncurry };
|
|
14
|
-
//# sourceMappingURL=
|
|
15
|
-
//# sourceMappingURL=
|
|
14
|
+
//# sourceMappingURL=LBOSJOZV.js.map
|
|
15
|
+
//# sourceMappingURL=LBOSJOZV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/functionalUtils.ts"],"names":["_curry","fn","args","remaining","arg","curry","arity","partiallyApply","argsInner","uncurry","argsOuter"],"mappings":";;;AAgBA,cAAA,EAAA;AAAA,IAAMA,MAAAA,mBAAS,MAAA,CAAA,CAACC,EAAAA,EAA6BC,IAAAA,EAAaC,cACtD,CAACA,SAAAA,GAAYF,EAAAA,CAAAA,GAAMC,IAAAA,CAAAA,GAAQ,CAACE,GAAAA,KAAaJ,OAAOC,EAAAA,EAAI;AAAIC,EAAAA,GAAAA,IAAAA;AAAME,EAAAA;AAAMD,CAAAA,EAAAA,SAAAA,GAAY,CAAA,CAAA,EADrE,QAAA,CAAA;AAGR,IAAME,KAAAA,2BACTJ,EAAAA,EACAK,KAAAA,KACaN,OAAOC,EAAAA,EAAI,EAAA,EAAIK,KAAAA,CAAAA,EAHX,OAAA;AAKd,IAAMC,cAAAA,mBACT,MAAA,CAAA,CACIN,EAAAA,EACAC,IAAAA,KAEJ,CAAA,GAAIM,SAAAA,KACAP,EAAAA,CAAAA,GAAMC,IAAAA,EAAAA,GAASM,SAAAA,CAAAA,EALnB,gBAAA;AAaG,IAAMC,OAAAA,mBAAU,MAAA,CAAA,CACnBR,EAAAA,KAEC,CAACS,SAAAA,EAAkBF,SAAAA,KAAqBP,EAAAA,CAAAA,GAAMS,SAAAA,CAAAA,CAAAA,GAAcF,SAAAA,CAAAA,EAH1C,SAAA","file":"
|
|
1
|
+
{"version":3,"sources":["../src/functionalUtils.ts"],"names":["_curry","fn","args","remaining","arg","curry","arity","partiallyApply","argsInner","uncurry","argsOuter"],"mappings":";;;AAgBA,cAAA,EAAA;AAAA,IAAMA,MAAAA,mBAAS,MAAA,CAAA,CAACC,EAAAA,EAA6BC,IAAAA,EAAaC,cACtD,CAACA,SAAAA,GAAYF,EAAAA,CAAAA,GAAMC,IAAAA,CAAAA,GAAQ,CAACE,GAAAA,KAAaJ,OAAOC,EAAAA,EAAI;AAAIC,EAAAA,GAAAA,IAAAA;AAAME,EAAAA;AAAMD,CAAAA,EAAAA,SAAAA,GAAY,CAAA,CAAA,EADrE,QAAA,CAAA;AAGR,IAAME,KAAAA,2BACTJ,EAAAA,EACAK,KAAAA,KACaN,OAAOC,EAAAA,EAAI,EAAA,EAAIK,KAAAA,CAAAA,EAHX,OAAA;AAKd,IAAMC,cAAAA,mBACT,MAAA,CAAA,CACIN,EAAAA,EACAC,IAAAA,KAEJ,CAAA,GAAIM,SAAAA,KACAP,EAAAA,CAAAA,GAAMC,IAAAA,EAAAA,GAASM,SAAAA,CAAAA,EALnB,gBAAA;AAaG,IAAMC,OAAAA,mBAAU,MAAA,CAAA,CACnBR,EAAAA,KAEC,CAACS,SAAAA,EAAkBF,SAAAA,KAAqBP,EAAAA,CAAAA,GAAMS,SAAAA,CAAAA,CAAAA,GAAcF,SAAAA,CAAAA,EAH1C,SAAA","file":"LBOSJOZV.js","sourcesContent":["import type { SubtractTuple, TuplePrefixUnion } from './tuples';\n\n// functional programming utils\n\ntype ParametersLength<T extends (...args: any[]) => any> = Parameters<T>['length'];\n\ntype BuildFn<T extends any[], R> = T extends [infer Head, ...infer Tail]\n ? (arg: Head) => BuildFn<Tail, R>\n : R;\n\nexport type Curried<T> = T extends (...args: infer Args) => infer Ret\n ? Args extends any[]\n ? BuildFn<Args, Ret>\n : T\n : T;\n\nconst _curry = (fn: (...args: any[]) => any, args: any[], remaining: number) =>\n !remaining ? fn(...args) : (arg: any) => _curry(fn, [...args, arg], remaining - 1);\n\nexport const curry = <T extends (...args: any[]) => any>(\n fn: T,\n arity: ParametersLength<T>,\n): Curried<T> => _curry(fn, [], arity);\n\nexport const partiallyApply =\n <T extends (...args: any[]) => any, Args extends TuplePrefixUnion<Parameters<T>>>(\n fn: T,\n args: Args,\n ): ((...argsInner: SubtractTuple<Parameters<T>, Args>) => ReturnType<T>) =>\n (...argsInner: any[]) =>\n fn(...args, ...argsInner);\n\nexport type Uncurried<T> = T extends (...argsOuter: infer ArgsOuter) => infer RetOuter\n ? RetOuter extends (...argsInner: infer ArgsInner) => infer RetInner\n ? (argsOuter: ArgsOuter, argsInner: ArgsInner) => RetInner\n : T\n : T;\n\nexport const uncurry = <T extends (...args: any[]) => (...args: any[]) => any>(\n fn: T,\n): Uncurried<T> =>\n ((argsOuter: any[], argsInner: any[]) => fn(...argsOuter)(...argsInner)) as Uncurried<T>;\n"]}
|
package/dist/MUP2ZWKH.js
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/withRequired.ts"],"names":[],"mappings":";;;AAEA,cAAA,EAAA","file":"
|
|
1
|
+
{"version":3,"sources":["../src/withRequired.ts"],"names":[],"mappings":";;;AAEA,cAAA,EAAA","file":"MUP2ZWKH.js","sourcesContent":["export type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };\n\nexport type AllRequired<T> = {\n [K in keyof T]-?: T[K];\n};\n"]}
|
package/dist/NAAXLSE5.js
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/removeNever.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"
|
|
1
|
+
{"version":3,"sources":["../src/removeNever.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"NAAXLSE5.js","sourcesContent":["export type RemoveNever<T> = {\n [K in keyof T as T[K] extends never ? never : K]: T[K];\n};\n"]}
|
package/dist/NXYWT3FC.js
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/disallowedAny.ts"],"names":[],"mappings":";;;AAIA,cAAA,EAAA","file":"
|
|
1
|
+
{"version":3,"sources":["../src/disallowedAny.ts"],"names":[],"mappings":";;;AAIA,cAAA,EAAA","file":"NXYWT3FC.js","sourcesContent":["type IsAnyInner<T> = T extends never ? true : false;\n\nexport type IsAny<T> =\n IsAnyInner<T> extends true ? false : IsAnyInner<T> extends false ? false : true;\nexport type DisallowedAny<T> = IsAny<T> extends true ? never : T;\n"]}
|
package/dist/PNLZD2U2.js
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/constructor.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"
|
|
1
|
+
{"version":3,"sources":["../src/constructor.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"PNLZD2U2.js","sourcesContent":["export type Constructor<T> = { new (...args: any[]): T };\n"]}
|
package/dist/QUJUTVP6.js
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/valueOf.ts"],"names":[],"mappings":";;;AAMA,cAAA,EAAA","file":"
|
|
1
|
+
{"version":3,"sources":["../src/valueOf.ts"],"names":[],"mappings":";;;AAMA,cAAA,EAAA","file":"QUJUTVP6.js","sourcesContent":["export type IntersectionValueOf<T> = (\n T[keyof T] extends infer U ? (U extends any ? (x: U) => void : never) : never\n) extends (x: infer I) => void\n ? I\n : never;\n\n/**\n * @description Creates a type that extracts the values of T.\n *\n * @example\n * ValueOf<{ a: string, b: number }>\n * => string | number\n *\n * @internal\n */\nexport type ValueOf<T> = T[keyof T];\n"]}
|
package/dist/RI75XMZ2.js
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/branded.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"
|
|
1
|
+
{"version":3,"sources":["../src/branded.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"RI75XMZ2.js","sourcesContent":["const tag = '___tag___';\n/**\n * Creates a branded type of {@link T} with the brand {@link U}.\n *\n * @param T - Type to brand\n * @param U - Label\n * @returns Branded type\n *\n * @example\n * type Result = Branded<string, 'foo'>\n * // ^? type Result = string & { [symbol]: 'foo' }\n */\nexport type Branded<T, U> = T & { [tag]: U };\n/**\n * Represents a percentage as a decimal value. For example, 25% is represented as 0.25\n */\nexport type Percent = number; // Branded<number, 'percent'>\n\nexport type BrandedError<T extends string> = Branded<Error, T>;\n"]}
|
package/dist/S6NNED46.js
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncify.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"
|
|
1
|
+
{"version":3,"sources":["../src/asyncify.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"S6NNED46.js","sourcesContent":["export type AsyncifyDeep<T> = T extends (...args: infer A) => infer R\n ? (...args: A) => Promise<R>\n : T extends object\n ? { [K in keyof T]: AsyncifyDeep<T[K]> }\n : T;\n"]}
|
package/dist/S7O2EBBN.js
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/viem.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"
|
|
1
|
+
{"version":3,"sources":["../src/viem.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"S7O2EBBN.js","sourcesContent":["/**\n * Filters out all members of {@link T} that are not {@link P}\n *\n * @param T - Items to filter\n * @param P - Type to filter out\n * @returns Filtered items\n *\n * @example\n * type Result = Filter<['a', 'b', 'c'], 'b'>\n * // ^? type Result = ['a', 'c']\n */\nexport type Filter<\n T extends readonly unknown[],\n P,\n Acc extends readonly unknown[] = [],\n> = T extends readonly [infer F, ...infer Rest extends readonly unknown[]]\n ? [F] extends [P]\n ? Filter<Rest, P, [...Acc, F]>\n : Filter<Rest, P, Acc>\n : readonly [...Acc];\n\n/**\n * @description Checks if {@link T} can be narrowed further than {@link U}\n * @param T - Type to check\n * @param U - Type to compare against\n * @example\n * type Result = IsNarrowable<'foo', string>\n * // ^? true\n */\nexport type IsNarrowable<T, U> =\n IsNever<(T extends U ? true : false) & (U extends T ? false : true)> extends true\n ? false\n : true;\n\n/**\n * @description Checks if {@link T} is `never`\n * @param T - Type to check\n * @example\n * type Result = IsNever<never>\n * // ^? type Result = true\n */\nexport type IsNever<T> = [T] extends [never] ? true : false;\n\n/** Removes `readonly` from all properties of an object. */\nexport type Mutable<type extends object> = {\n -readonly [key in keyof type]: type[key];\n};\n\n/**\n * @description Evaluates boolean \"or\" condition for {@link T} properties.\n * @param T - Type to check\n *\n * * @example\n * type Result = Or<[false, true, false]>\n * // ^? type Result = true\n *\n * @example\n * type Result = Or<[false, false, false]>\n * // ^? type Result = false\n */\nexport type Or<T extends readonly unknown[]> = T extends readonly [infer Head, ...infer Tail]\n ? Head extends true\n ? true\n : Or<Tail>\n : false;\n\n/**\n * @description Checks if {@link T} is `undefined`\n * @param T - Type to check\n * @example\n * type Result = IsUndefined<undefined>\n * // ^? type Result = true\n */\nexport type IsUndefined<T> = [undefined] extends [T] ? true : false;\n\nexport type MaybePromise<T> = T | Promise<T>;\n\n/**\n * @description Makes attributes on the type T required if required is true.\n *\n * @example\n * MaybeRequired<{ a: string, b?: number }, true>\n * => { a: string, b: number }\n *\n * MaybeRequired<{ a: string, b?: number }, false>\n * => { a: string, b?: number }\n */\nexport type MaybeRequired<T, required extends boolean> = required extends true\n ? ExactRequired<T>\n : T;\n\n/**\n * @description Assigns the properties of U onto T.\n *\n * @example\n * Assign<{ a: string, b: number }, { a: undefined, c: boolean }>\n * => { a: undefined, b: number, c: boolean }\n */\nexport type Assign<T, U> = Assign_<T, U> & U;\ntype Assign_<T, U> = {\n [K in keyof T as K extends keyof U ? (U[K] extends void ? never : K) : K]: K extends keyof U\n ? U[K]\n : T[K];\n};\n\n// TODO: Remove when peer dep `typescript@>=4.5` (NoInfer is native)\nexport type NoInfer<type> = [type][type extends any ? 0 : never];\n\n/**\n * @description Constructs a type by excluding `undefined` from `T`.\n *\n * @example\n * NoUndefined<string | undefined>\n * => string\n *\n * @internal\n */\nexport type NoUndefined<T> = T extends undefined ? never : T;\n\n/** Strict version of built-in Omit type */\nexport type Omit<type, keys extends keyof type> = Pick<type, Exclude<keyof type, keys>>;\n\n/**\n * @description Creates a type that is a partial of T, but with the required keys K.\n *\n * @example\n * PartialBy<{ a: string, b: number }, 'a'>\n * => { a?: string, b: number }\n */\nexport type PartialBy<T, K extends keyof T> = Omit<T, K> & ExactPartial<Pick<T, K>>;\n\n/**\n * @description Combines members of an intersection into a readable type.\n *\n * @see {@link https://twitter.com/mattpocockuk/status/1622730173446557697?s=20&t=NdpAcmEFXY01xkqU3KO0Mg}\n * @example\n * Prettify<{ a: string } & { b: string } & { c: number, d: bigint }>\n * => { a: string, b: string, c: number, d: bigint }\n */\nexport type Prettify<T> = {\n [K in keyof T]: T[K];\n} & {};\n\n/** @internal */\nexport type Evaluate<type> = {\n [key in keyof type]: type[key];\n} & {};\n\n/**\n * @description Creates a type that is T with the required keys K.\n *\n * @example\n * RequiredBy<{ a?: string, b: number }, 'a'>\n * => { a: string, b: number }\n */\nexport type RequiredBy<T, K extends keyof T> = Omit<T, K> & ExactRequired<Pick<T, K>>;\n\n/**\n * @description Returns truthy if `array` contains `value`.\n *\n * @example\n * Some<[1, 2, 3], 2>\n * => true\n */\nexport type Some<array extends readonly unknown[], value> = array extends readonly [\n value,\n ...unknown[],\n]\n ? true\n : array extends readonly [unknown, ...infer rest]\n ? Some<rest, value>\n : false;\n\nexport type UnionToTuple<\n union,\n ///\n last = LastInUnion<union>,\n> = [union] extends [never] ? [] : [...UnionToTuple<Exclude<union, last>>, last];\ntype LastInUnion<U> =\n UnionToIntersection<U extends unknown ? (x: U) => 0 : never> extends (x: infer l) => 0\n ? l\n : never;\ntype UnionToIntersection<union> = (union extends unknown ? (arg: union) => 0 : never) extends (\n arg: infer i,\n) => 0\n ? i\n : never;\n\nexport type IsUnion<\n union,\n ///\n union2 = union,\n> = union extends union2 ? ([union2] extends [union] ? false : true) : never;\n\nexport type MaybePartial<type, enabled extends boolean | undefined> = enabled extends true\n ? Prettify<ExactPartial<type>>\n : type;\n\nexport type ExactPartial<type> = {\n [key in keyof type]?: type[key] | undefined;\n};\n\nexport type ExactRequired<type> = {\n [P in keyof type]-?: Exclude<type[P], undefined>;\n};\n\nexport type OneOf<\n union extends object,\n fallback extends object | undefined = undefined,\n ///\n keys extends KeyofUnion<union> = KeyofUnion<union>,\n> = union extends infer item\n ? Prettify<\n item & {\n [key in Exclude<keys, keyof item>]?: fallback extends object\n ? key extends keyof fallback\n ? fallback[key]\n : undefined\n : undefined;\n }\n >\n : never;\ntype KeyofUnion<type> = type extends type ? keyof type : never;\n\n///////////////////////////////////////////////////////////////////////////\n// Loose types\n\n/**\n * Loose version of {@link Omit}\n * @internal\n */\nexport type LooseOmit<type, keys extends string> = Pick<type, Exclude<keyof type, keys>>;\n\n///////////////////////////////////////////////////////////////////////////\n// Union types\n\nexport type UnionEvaluate<type> = type extends object ? Prettify<type> : type;\n\nexport type UnionLooseOmit<type, keys extends string> = type extends any\n ? LooseOmit<type, keys>\n : never;\n\n/**\n * @description Construct a type with the properties of union type T except for those in type K.\n * @example\n * type Result = UnionOmit<{ a: string, b: number } | { a: string, b: undefined, c: number }, 'a'>\n * => { b: number } | { b: undefined, c: number }\n */\nexport type UnionOmit<type, keys extends keyof type> = type extends any ? Omit<type, keys> : never;\n\n/**\n * @description Construct a type with the properties of union type T except for those in type K.\n * @example\n * type Result = UnionOmit<{ a: string, b: number } | { a: string, b: undefined, c: number }, 'a'>\n * => { b: number } | { b: undefined, c: number }\n */\nexport type UnionPick<type, keys extends keyof type> = type extends any ? Pick<type, keys> : never;\n\n/**\n * @description Creates a type that is a partial of T, but with the required keys K.\n *\n * @example\n * PartialBy<{ a: string, b: number } | { a: string, b: undefined, c: number }, 'a'>\n * => { a?: string, b: number } | { a?: string, b: undefined, c: number }\n */\nexport type UnionPartialBy<T, K extends keyof T> = T extends any ? PartialBy<T, K> : never;\n\n/**\n * @description Creates a type that is T with the required keys K.\n *\n * @example\n * RequiredBy<{ a?: string, b: number } | { a?: string, c?: number }, 'a'>\n * => { a: string, b: number } | { a: string, c?: number }\n */\nexport type UnionRequiredBy<T, K extends keyof T> = T extends any ? RequiredBy<T, K> : never;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims, __name } from './
|
|
1
|
+
import { init_esm_shims, __name } from './ZVSZ2LTA.js';
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs
|
|
4
4
|
init_esm_shims();
|
|
@@ -1337,5 +1337,5 @@ var Bundle = class _Bundle {
|
|
|
1337
1337
|
};
|
|
1338
1338
|
|
|
1339
1339
|
export { Bundle, SourceMap, MagicString as default };
|
|
1340
|
-
//# sourceMappingURL=
|
|
1341
|
-
//# sourceMappingURL=
|
|
1340
|
+
//# sourceMappingURL=SCG5YUF6.js.map
|
|
1341
|
+
//# sourceMappingURL=SCG5YUF6.js.map
|