@layerzerolabs/typescript-utils 1.2.25 → 1.2.28

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.
Files changed (85) hide show
  1. package/dist/{3GUONMA5.js → 5RVE4P63.js} +3 -3
  2. package/dist/5RVE4P63.js.map +1 -0
  3. package/dist/{OBTB4CGS.js → BZFOTC52.js} +3 -3
  4. package/dist/{OBTB4CGS.js.map → BZFOTC52.js.map} +1 -1
  5. package/dist/C42KYLF2.js +6 -0
  6. package/dist/{S3ZGPGBK.js.map → C42KYLF2.js.map} +1 -1
  7. package/dist/C5WC33SO.js +6 -0
  8. package/dist/{7K72QQNK.js.map → C5WC33SO.js.map} +1 -1
  9. package/dist/CK4N7F4R.js +6 -0
  10. package/dist/{YUACM4JG.js.map → CK4N7F4R.js.map} +1 -1
  11. package/dist/{7Y67XUZE.js → CN32JFM4.js} +3 -3
  12. package/dist/{7Y67XUZE.js.map → CN32JFM4.js.map} +1 -1
  13. package/dist/{YG2Y6NOL.js → CVKY4PFJ.js} +3 -3
  14. package/dist/{YG2Y6NOL.js.map → CVKY4PFJ.js.map} +1 -1
  15. package/dist/DUABMTPD.js +6 -0
  16. package/dist/{BSNK5L7B.js.map → DUABMTPD.js.map} +1 -1
  17. package/dist/DXQJAC2D.js +6 -0
  18. package/dist/{W24EH7Y4.js.map → DXQJAC2D.js.map} +1 -1
  19. package/dist/GW3WNPWT.js +6 -0
  20. package/dist/{MRRG35V3.js.map → GW3WNPWT.js.map} +1 -1
  21. package/dist/HXPRGH76.js +6 -0
  22. package/dist/{P24OJW5S.js.map → HXPRGH76.js.map} +1 -1
  23. package/dist/ICYXQ3TH.js +6 -0
  24. package/dist/{WWLYEH6F.js.map → ICYXQ3TH.js.map} +1 -1
  25. package/dist/IHOKVYQX.js +6 -0
  26. package/dist/{EHNXTLTB.js.map → IHOKVYQX.js.map} +1 -1
  27. package/dist/J7MXPYNB.js +6 -0
  28. package/dist/{KDSQYXCE.js.map → J7MXPYNB.js.map} +1 -1
  29. package/dist/JHB76A5P.js +6 -0
  30. package/dist/{3STZQAJN.js.map → JHB76A5P.js.map} +1 -1
  31. package/dist/LJG7PTOW.js +6 -0
  32. package/dist/{TM6TNTA7.js.map → LJG7PTOW.js.map} +1 -1
  33. package/dist/Q72HV3FQ.js +6 -0
  34. package/dist/{SHJX4QBF.js.map → Q72HV3FQ.js.map} +1 -1
  35. package/dist/Q7PHMFZZ.js +6 -0
  36. package/dist/{O6LUWQ7J.js.map → Q7PHMFZZ.js.map} +1 -1
  37. package/dist/{NT6KQXHL.js → QGA2ROSC.js} +5 -5
  38. package/dist/{NT6KQXHL.js.map → QGA2ROSC.js.map} +1 -1
  39. package/dist/QQHVKGTR.js +6 -0
  40. package/dist/{CYM4JWQD.js.map → QQHVKGTR.js.map} +1 -1
  41. package/dist/UIRDLJX2.js +6 -0
  42. package/dist/{K3OTXOMP.js.map → UIRDLJX2.js.map} +1 -1
  43. package/dist/YIALIAFI.js +6 -0
  44. package/dist/{VX6CBFIJ.js.map → YIALIAFI.js.map} +1 -1
  45. package/dist/advancedRecord.js +2 -2
  46. package/dist/asyncify.js +2 -2
  47. package/dist/branded.js +2 -2
  48. package/dist/constructor.js +2 -2
  49. package/dist/deep.js +2 -2
  50. package/dist/deep.test-d.js +2 -2
  51. package/dist/disallowedAny.js +2 -2
  52. package/dist/functionalUtils.js +2 -2
  53. package/dist/identity.js +2 -2
  54. package/dist/index.js +20 -20
  55. package/dist/lastOf.js +2 -2
  56. package/dist/maybeUndefined.js +2 -2
  57. package/dist/merge.js +2 -2
  58. package/dist/methodOf.js +2 -2
  59. package/dist/promise.js +2 -2
  60. package/dist/removeNever.js +2 -2
  61. package/dist/strings.js +2 -2
  62. package/dist/strings.test-d.js +2 -2
  63. package/dist/tuples.js +2 -2
  64. package/dist/valueOf.js +2 -2
  65. package/dist/viem.js +2 -2
  66. package/dist/withRequired.js +2 -2
  67. package/package.json +3 -3
  68. package/dist/3GUONMA5.js.map +0 -1
  69. package/dist/3STZQAJN.js +0 -6
  70. package/dist/7K72QQNK.js +0 -6
  71. package/dist/BSNK5L7B.js +0 -6
  72. package/dist/CYM4JWQD.js +0 -6
  73. package/dist/EHNXTLTB.js +0 -6
  74. package/dist/K3OTXOMP.js +0 -6
  75. package/dist/KDSQYXCE.js +0 -6
  76. package/dist/MRRG35V3.js +0 -6
  77. package/dist/O6LUWQ7J.js +0 -6
  78. package/dist/P24OJW5S.js +0 -6
  79. package/dist/S3ZGPGBK.js +0 -6
  80. package/dist/SHJX4QBF.js +0 -6
  81. package/dist/TM6TNTA7.js +0 -6
  82. package/dist/VX6CBFIJ.js +0 -6
  83. package/dist/W24EH7Y4.js +0 -6
  84. package/dist/WWLYEH6F.js +0 -6
  85. package/dist/YUACM4JG.js +0 -6
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/viem.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"WWLYEH6F.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
+ {"version":3,"sources":["../src/viem.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"ICYXQ3TH.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"]}
@@ -0,0 +1,6 @@
1
+ import { init_esm_shims } from './5RVE4P63.js';
2
+
3
+ // src/branded.ts
4
+ init_esm_shims();
5
+ //# sourceMappingURL=IHOKVYQX.js.map
6
+ //# sourceMappingURL=IHOKVYQX.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/branded.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"EHNXTLTB.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"]}
1
+ {"version":3,"sources":["../src/branded.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"IHOKVYQX.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"]}
@@ -0,0 +1,6 @@
1
+ import { init_esm_shims } from './5RVE4P63.js';
2
+
3
+ // src/asyncify.ts
4
+ init_esm_shims();
5
+ //# sourceMappingURL=J7MXPYNB.js.map
6
+ //# sourceMappingURL=J7MXPYNB.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/asyncify.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"KDSQYXCE.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"]}
1
+ {"version":3,"sources":["../src/asyncify.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"J7MXPYNB.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"]}
@@ -0,0 +1,6 @@
1
+ import { init_esm_shims } from './5RVE4P63.js';
2
+
3
+ // src/disallowedAny.ts
4
+ init_esm_shims();
5
+ //# sourceMappingURL=JHB76A5P.js.map
6
+ //# sourceMappingURL=JHB76A5P.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/disallowedAny.ts"],"names":[],"mappings":";;;AAIA,cAAA,EAAA","file":"3STZQAJN.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"]}
1
+ {"version":3,"sources":["../src/disallowedAny.ts"],"names":[],"mappings":";;;AAIA,cAAA,EAAA","file":"JHB76A5P.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"]}
@@ -0,0 +1,6 @@
1
+ import { init_esm_shims } from './5RVE4P63.js';
2
+
3
+ // src/valueOf.ts
4
+ init_esm_shims();
5
+ //# sourceMappingURL=LJG7PTOW.js.map
6
+ //# sourceMappingURL=LJG7PTOW.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/valueOf.ts"],"names":[],"mappings":";;;AAMA,cAAA,EAAA","file":"TM6TNTA7.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"]}
1
+ {"version":3,"sources":["../src/valueOf.ts"],"names":[],"mappings":";;;AAMA,cAAA,EAAA","file":"LJG7PTOW.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"]}
@@ -0,0 +1,6 @@
1
+ import { init_esm_shims } from './5RVE4P63.js';
2
+
3
+ // src/merge.ts
4
+ init_esm_shims();
5
+ //# sourceMappingURL=Q72HV3FQ.js.map
6
+ //# sourceMappingURL=Q72HV3FQ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/merge.ts"],"names":[],"mappings":";;;AAEA,cAAA,EAAA","file":"SHJX4QBF.js","sourcesContent":["import type { Prettify } from './viem';\n\nexport type Merge<T, U> = {} extends T\n ? U\n : {} extends U\n ? T\n : Prettify<\n {\n [key in keyof T]: key extends keyof U ? U[key] : T[key];\n } & {\n [key in keyof U]: U[key];\n }\n >;\n"]}
1
+ {"version":3,"sources":["../src/merge.ts"],"names":[],"mappings":";;;AAEA,cAAA,EAAA","file":"Q72HV3FQ.js","sourcesContent":["import type { Prettify } from './viem';\n\nexport type Merge<T, U> = {} extends T\n ? U\n : {} extends U\n ? T\n : Prettify<\n {\n [key in keyof T]: key extends keyof U ? U[key] : T[key];\n } & {\n [key in keyof U]: U[key];\n }\n >;\n"]}
@@ -0,0 +1,6 @@
1
+ import { init_esm_shims } from './5RVE4P63.js';
2
+
3
+ // src/constructor.ts
4
+ init_esm_shims();
5
+ //# sourceMappingURL=Q7PHMFZZ.js.map
6
+ //# sourceMappingURL=Q7PHMFZZ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/constructor.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"O6LUWQ7J.js","sourcesContent":["export type Constructor<T> = { new (...args: any[]): T };\n"]}
1
+ {"version":3,"sources":["../src/constructor.ts"],"names":[],"mappings":";;;AAAA,cAAA,EAAA","file":"Q7PHMFZZ.js","sourcesContent":["export type Constructor<T> = { new (...args: any[]): T };\n"]}
@@ -1,4 +1,4 @@
1
- import { __commonJS, init_esm_shims, __name, __toESM } from './3GUONMA5.js';
1
+ import { __commonJS, init_esm_shims, __name, __toESM } from './5RVE4P63.js';
2
2
  import { isatty } from 'tty';
3
3
 
4
4
  // ../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js
@@ -4455,7 +4455,7 @@ __name(createTestHook, "createTestHook");
4455
4455
  // ../../node_modules/.pnpm/@vitest+runner@3.2.6/node_modules/@vitest/runner/dist/index.js
4456
4456
  init_esm_shims();
4457
4457
 
4458
- // ../../node_modules/.pnpm/vitest@3.2.6_@types+debug@4.1.12_@types+node@25.5.0_@vitest+ui@3.2.6_jiti@2.6.1_jsdom@2_e8f2a21d95ff4b08cccb4c421fe1c387/node_modules/vitest/dist/index.js
4458
+ // ../../node_modules/.pnpm/vitest@3.2.6_@types+debug@4.1.12_@types+node@25.9.5_@vitest+ui@3.2.6_jiti@2.6.1_jsdom@2_8f3d2b06ab2215303ef3a2343cae5ece/node_modules/vitest/dist/index.js
4459
4459
  init_esm_shims();
4460
4460
 
4461
4461
  // ../../node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js
@@ -8218,7 +8218,7 @@ __name2(use, "use");
8218
8218
  // ../../node_modules/.pnpm/@vitest+runner@3.2.6/node_modules/@vitest/runner/dist/utils.js
8219
8219
  init_esm_shims();
8220
8220
 
8221
- // ../../node_modules/.pnpm/vitest@3.2.6_@types+debug@4.1.12_@types+node@25.5.0_@vitest+ui@3.2.6_jiti@2.6.1_jsdom@2_e8f2a21d95ff4b08cccb4c421fe1c387/node_modules/vitest/dist/index.js
8221
+ // ../../node_modules/.pnpm/vitest@3.2.6_@types+debug@4.1.12_@types+node@25.9.5_@vitest+ui@3.2.6_jiti@2.6.1_jsdom@2_8f3d2b06ab2215303ef3a2343cae5ece/node_modules/vitest/dist/index.js
8222
8222
  var import_expect_type = __toESM(require_dist(), 1);
8223
8223
  /*! Bundled license information:
8224
8224
 
@@ -8504,5 +8504,5 @@ chai/index.js:
8504
8504
  */
8505
8505
 
8506
8506
  export { import_expect_type, test2 as test };
8507
- //# sourceMappingURL=NT6KQXHL.js.map
8508
- //# sourceMappingURL=NT6KQXHL.js.map
8507
+ //# sourceMappingURL=QGA2ROSC.js.map
8508
+ //# sourceMappingURL=QGA2ROSC.js.map