yummies 5.15.0 → 6.0.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.
Files changed (235) hide show
  1. package/README.md +10 -4
  2. package/async.cjs +45 -1
  3. package/async.cjs.map +1 -1
  4. package/async.d.ts +7 -6
  5. package/common.cjs +11 -1
  6. package/common.cjs.map +1 -1
  7. package/common.d.ts +8 -5
  8. package/common.js.map +1 -1
  9. package/complex.cjs +88 -1
  10. package/complex.cjs.map +1 -1
  11. package/{complex/modules-factory.d.ts → complex.d.ts} +31 -4
  12. package/complex.js.map +1 -1
  13. package/cookie.cjs +9 -1
  14. package/cookie.cjs.map +1 -1
  15. package/cookie.d.ts +5 -3
  16. package/cookie.js.map +1 -1
  17. package/css.cjs +45 -1
  18. package/css.cjs.map +1 -1
  19. package/css.d.ts +11 -8
  20. package/css.js.map +1 -1
  21. package/data.cjs +43 -1
  22. package/data.cjs.map +1 -1
  23. package/data.d.ts +5 -4
  24. package/data.js.map +1 -1
  25. package/date-time.cjs +395 -1
  26. package/date-time.cjs.map +1 -1
  27. package/date-time.d.ts +12 -10
  28. package/date-time.js.map +1 -1
  29. package/device.cjs +32 -1
  30. package/device.cjs.map +1 -1
  31. package/device.d.ts +9 -8
  32. package/encodings.cjs +270 -1
  33. package/encodings.cjs.map +1 -1
  34. package/encodings.d.ts +3 -2
  35. package/encodings.js.map +1 -1
  36. package/errors.cjs +23 -1
  37. package/errors.cjs.map +1 -1
  38. package/errors.d.ts +5 -4
  39. package/errors.js.map +1 -1
  40. package/file.cjs +28 -1
  41. package/file.cjs.map +1 -1
  42. package/file.d.ts +4 -3
  43. package/format.cjs +75 -1
  44. package/format.cjs.map +1 -1
  45. package/format.d.ts +74 -0
  46. package/format.js.map +1 -1
  47. package/html.cjs +167 -1
  48. package/html.cjs.map +1 -1
  49. package/html.d.ts +19 -17
  50. package/html.js.map +1 -1
  51. package/id.cjs +25 -1
  52. package/id.cjs.map +1 -1
  53. package/id.d.ts +9 -8
  54. package/imports.cjs +33 -1
  55. package/imports.cjs.map +1 -1
  56. package/imports.d.ts +6 -4
  57. package/math.cjs +14 -1
  58. package/math.cjs.map +1 -1
  59. package/math.d.ts +7 -5
  60. package/math.js.map +1 -1
  61. package/media.cjs +105 -1
  62. package/media.cjs.map +1 -1
  63. package/media.d.ts +11 -11
  64. package/mobx.cjs +184 -1
  65. package/mobx.cjs.map +1 -1
  66. package/mobx.d.ts +66 -0
  67. package/mobx.js +16 -12
  68. package/mobx.js.map +1 -1
  69. package/ms.cjs +13 -1
  70. package/ms.cjs.map +1 -1
  71. package/ms.d.ts +4 -3
  72. package/number.cjs +10 -1
  73. package/number.cjs.map +1 -1
  74. package/number.d.ts +3 -2
  75. package/package.json +39 -113
  76. package/parser.cjs +68 -1
  77. package/parser.cjs.map +1 -1
  78. package/parser.d.ts +41 -0
  79. package/parser.js.map +1 -1
  80. package/price.cjs +20 -1
  81. package/price.cjs.map +1 -1
  82. package/price.d.ts +5 -3
  83. package/random.cjs +24 -1
  84. package/random.cjs.map +1 -1
  85. package/random.d.ts +10 -9
  86. package/react.cjs +216 -1
  87. package/react.cjs.map +1 -1
  88. package/react.d.ts +113 -0
  89. package/react.js.map +1 -1
  90. package/sound.cjs +11 -1
  91. package/sound.cjs.map +1 -1
  92. package/sound.d.ts +3 -2
  93. package/text.cjs +37 -1
  94. package/text.cjs.map +1 -1
  95. package/text.d.ts +4 -3
  96. package/type-guard.cjs +75 -1
  97. package/type-guard.cjs.map +1 -1
  98. package/type-guard.d.ts +121 -0
  99. package/type-guard.js.map +1 -1
  100. package/{utils/types.d.ts → types.d.ts} +54 -53
  101. package/types.global.cjs +2 -0
  102. package/types.global.cjs.map +1 -0
  103. package/{utility-types.d.ts → types.global.d.ts} +1 -1
  104. package/types.global.js +2 -0
  105. package/types.global.js.map +1 -0
  106. package/vibrate.cjs +8 -1
  107. package/vibrate.cjs.map +1 -1
  108. package/vibrate.d.ts +3 -2
  109. package/async.d.ts.map +0 -1
  110. package/common.d.ts.map +0 -1
  111. package/complex/counter.d.ts +0 -15
  112. package/complex/counter.d.ts.map +0 -1
  113. package/complex/global-config.d.ts +0 -11
  114. package/complex/global-config.d.ts.map +0 -1
  115. package/complex/index.d.ts +0 -4
  116. package/complex/index.d.ts.map +0 -1
  117. package/complex/modules-factory.d.ts.map +0 -1
  118. package/cookie.d.ts.map +0 -1
  119. package/css.d.ts.map +0 -1
  120. package/data.d.ts.map +0 -1
  121. package/date-time.d.ts.map +0 -1
  122. package/device.d.ts.map +0 -1
  123. package/encodings.d.ts.map +0 -1
  124. package/errors.d.ts.map +0 -1
  125. package/file.d.ts.map +0 -1
  126. package/format/_exports.d.ts +0 -5
  127. package/format/_exports.d.ts.map +0 -1
  128. package/format/constants.d.ts +0 -4
  129. package/format/constants.d.ts.map +0 -1
  130. package/format/index.d.ts +0 -3
  131. package/format/index.d.ts.map +0 -1
  132. package/format/number.d.ts +0 -36
  133. package/format/number.d.ts.map +0 -1
  134. package/format/percent.d.ts +0 -15
  135. package/format/percent.d.ts.map +0 -1
  136. package/format/skip-spaces.d.ts +0 -5
  137. package/format/skip-spaces.d.ts.map +0 -1
  138. package/html.d.ts.map +0 -1
  139. package/id.d.ts.map +0 -1
  140. package/imports.d.ts.map +0 -1
  141. package/math.d.ts.map +0 -1
  142. package/media.d.ts.map +0 -1
  143. package/mobx/apply-observable.d.ts +0 -4
  144. package/mobx/apply-observable.d.ts.map +0 -1
  145. package/mobx/create-enhanced-atom.d.ts +0 -11
  146. package/mobx/create-enhanced-atom.d.ts.map +0 -1
  147. package/mobx/create-ref.d.ts +0 -25
  148. package/mobx/create-ref.d.ts.map +0 -1
  149. package/mobx/deep-observable-struct.d.ts +0 -7
  150. package/mobx/deep-observable-struct.d.ts.map +0 -1
  151. package/mobx/get-mobx-administration.d.ts +0 -6
  152. package/mobx/get-mobx-administration.d.ts.map +0 -1
  153. package/mobx/index.d.ts +0 -7
  154. package/mobx/index.d.ts.map +0 -1
  155. package/mobx/lazy-observe.d.ts +0 -14
  156. package/mobx/lazy-observe.d.ts.map +0 -1
  157. package/ms.d.ts.map +0 -1
  158. package/number.d.ts.map +0 -1
  159. package/parser/_exports.d.ts +0 -4
  160. package/parser/_exports.d.ts.map +0 -1
  161. package/parser/index.d.ts +0 -3
  162. package/parser/index.d.ts.map +0 -1
  163. package/parser/number.d.ts +0 -21
  164. package/parser/number.d.ts.map +0 -1
  165. package/parser/percent.d.ts +0 -4
  166. package/parser/percent.d.ts.map +0 -1
  167. package/parser/string.d.ts +0 -7
  168. package/parser/string.d.ts.map +0 -1
  169. package/price.d.ts.map +0 -1
  170. package/random.d.ts.map +0 -1
  171. package/react/hooks/index.d.ts +0 -22
  172. package/react/hooks/index.d.ts.map +0 -1
  173. package/react/hooks/use-abort-controller.d.ts +0 -2
  174. package/react/hooks/use-abort-controller.d.ts.map +0 -1
  175. package/react/hooks/use-abort-signal.d.ts +0 -2
  176. package/react/hooks/use-abort-signal.d.ts.map +0 -1
  177. package/react/hooks/use-click-outside.d.ts +0 -9
  178. package/react/hooks/use-click-outside.d.ts.map +0 -1
  179. package/react/hooks/use-constant.d.ts +0 -9
  180. package/react/hooks/use-constant.d.ts.map +0 -1
  181. package/react/hooks/use-define-ref.d.ts +0 -10
  182. package/react/hooks/use-define-ref.d.ts.map +0 -1
  183. package/react/hooks/use-element-ref.d.ts +0 -2
  184. package/react/hooks/use-element-ref.d.ts.map +0 -1
  185. package/react/hooks/use-event-listener.d.ts +0 -8
  186. package/react/hooks/use-event-listener.d.ts.map +0 -1
  187. package/react/hooks/use-event.d.ts +0 -3
  188. package/react/hooks/use-event.d.ts.map +0 -1
  189. package/react/hooks/use-flag.d.ts +0 -8
  190. package/react/hooks/use-flag.d.ts.map +0 -1
  191. package/react/hooks/use-force-update.d.ts +0 -2
  192. package/react/hooks/use-force-update.d.ts.map +0 -1
  193. package/react/hooks/use-initial-height.d.ts +0 -5
  194. package/react/hooks/use-initial-height.d.ts.map +0 -1
  195. package/react/hooks/use-instance.d.ts +0 -27
  196. package/react/hooks/use-instance.d.ts.map +0 -1
  197. package/react/hooks/use-intersection-observer.d.ts +0 -2
  198. package/react/hooks/use-intersection-observer.d.ts.map +0 -1
  199. package/react/hooks/use-last-defined-value.d.ts +0 -2
  200. package/react/hooks/use-last-defined-value.d.ts.map +0 -1
  201. package/react/hooks/use-last-value-ref.d.ts +0 -2
  202. package/react/hooks/use-last-value-ref.d.ts.map +0 -1
  203. package/react/hooks/use-life-cycle.d.ts +0 -5
  204. package/react/hooks/use-life-cycle.d.ts.map +0 -1
  205. package/react/hooks/use-resize-observer.d.ts +0 -2
  206. package/react/hooks/use-resize-observer.d.ts.map +0 -1
  207. package/react/hooks/use-sync-ref.d.ts +0 -2
  208. package/react/hooks/use-sync-ref.d.ts.map +0 -1
  209. package/react/hooks/use-toggle.d.ts +0 -2
  210. package/react/hooks/use-toggle.d.ts.map +0 -1
  211. package/react/hooks/use-value.d.ts +0 -5
  212. package/react/hooks/use-value.d.ts.map +0 -1
  213. package/react/hooks/use-visibility-state.d.ts +0 -2
  214. package/react/hooks/use-visibility-state.d.ts.map +0 -1
  215. package/react/index.d.ts +0 -2
  216. package/react/index.d.ts.map +0 -1
  217. package/sound.d.ts.map +0 -1
  218. package/storage.d.ts +0 -39
  219. package/storage.d.ts.map +0 -1
  220. package/text.d.ts.map +0 -1
  221. package/type-guard/_exports.d.ts +0 -86
  222. package/type-guard/_exports.d.ts.map +0 -1
  223. package/type-guard/index.d.ts +0 -3
  224. package/type-guard/index.d.ts.map +0 -1
  225. package/utility-types.cjs +0 -2
  226. package/utility-types.cjs.map +0 -1
  227. package/utility-types.d.ts.map +0 -1
  228. package/utility-types.js +0 -2
  229. package/utility-types.js.map +0 -1
  230. package/utils/types.d.ts.map +0 -1
  231. package/vibrate.d.ts.map +0 -1
  232. /package/{utils/types.cjs → types.cjs} +0 -0
  233. /package/{utils/types.cjs.map → types.cjs.map} +0 -0
  234. /package/{utils/types.js → types.js} +0 -0
  235. /package/{utils/types.js.map → types.js.map} +0 -0
@@ -4,14 +4,14 @@
4
4
  * @template T - The input type to extract values from
5
5
  * @returns The union of all possible values in T
6
6
  */
7
- export type ValueOf<T> = T[keyof T];
7
+ type ValueOf<T> = T[keyof T];
8
8
  /**
9
9
  * Extracts enum keys as a union type.
10
10
  *
11
11
  * @template T - The enum type to extract keys from
12
12
  * @returns A union of all string keys in the enum
13
13
  */
14
- export type ExtractEnumKeys<T> = ValueOf<{
14
+ type ExtractEnumKeys<T> = ValueOf<{
15
15
  [key in keyof T]: key extends string ? key : never;
16
16
  }>;
17
17
  /**
@@ -20,39 +20,39 @@ export type ExtractEnumKeys<T> = ValueOf<{
20
20
  * @template T - The enum type to extract values from
21
21
  * @returns A union of all string and numeric values in the enum
22
22
  */
23
- export type ExtractEnumValues<T> = `${T & string}` | (T & number);
23
+ type ExtractEnumValues<T> = `${T & string}` | (T & number);
24
24
  /**
25
25
  * Represents a type that can be either the specified type or `undefined` or `null`.
26
26
  *
27
27
  * @template T - The input type
28
28
  * @returns T or `undefined` or `null`
29
29
  */
30
- export type Maybe<T> = Nullable<T> | undefined;
30
+ type Maybe<T> = Nullable<T> | undefined;
31
31
  /**
32
32
  * Represents a type that can be either the specified type or `null`.
33
33
  *
34
34
  * @template T - The type to make possibly `null`
35
35
  * @returns `T` or `null`
36
36
  */
37
- export type Nullable<T> = T | null;
37
+ type Nullable<T> = T | null;
38
38
  /**
39
39
  * Represents any object with any keys and any values.
40
40
  *
41
41
  * @returns Record with any keys and any values
42
42
  */
43
- export type AnyObject = Record<keyof any, any>;
43
+ type AnyObject = Record<keyof any, any>;
44
44
  /**
45
45
  * Represents an empty object with no properties.
46
46
  *
47
47
  * @returns Record with no keys and no values
48
48
  */
49
- export type EmptyObject = Record<keyof any, never>;
49
+ type EmptyObject = Record<keyof any, never>;
50
50
  /**
51
51
  * Represents all primitive types in TypeScript.
52
52
  *
53
53
  * @returns Union of all primitive types
54
54
  */
55
- export type Primitive = null | undefined | string | number | boolean | symbol | bigint;
55
+ type Primitive = null | undefined | string | number | boolean | symbol | bigint;
56
56
  /**
57
57
  * Represents any primitive type (string, number, boolean, null, or undefined).
58
58
  *
@@ -60,33 +60,33 @@ export type Primitive = null | undefined | string | number | boolean | symbol |
60
60
  *
61
61
  * @returns Union of all primitive types
62
62
  */
63
- export type AnyPrimitive = Primitive;
63
+ type AnyPrimitive = Primitive;
64
64
  /**
65
65
  * Represents any function type.
66
66
  *
67
67
  * @returns Function with any parameters and return type
68
68
  */
69
- export type AnyFunction = (...args: any) => any;
69
+ type AnyFunction = (...args: any) => any;
70
70
  /**
71
71
  * Converts a union type to an intersection type.
72
72
  *
73
73
  * @template U - The union type to convert
74
74
  * @returns Intersection of all types in the union
75
75
  */
76
- export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
76
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
77
77
  /**
78
78
  * Represents falsy values (undefined, null, empty string, false, or 0).
79
79
  *
80
80
  * @returns Union of all falsy values
81
81
  */
82
- export type FalsyValues = undefined | null | '' | false | 0;
82
+ type FalsyValues = undefined | null | '' | false | 0;
83
83
  /**
84
84
  * Represents a type that can be either the specified type, undefined, or any other falsy value.
85
85
  *
86
86
  * @template T - The type to make possibly falsy
87
87
  * @returns T, undefined, or a falsy value
88
88
  */
89
- export type MaybeFalsy<T> = T | FalsyValues;
89
+ type MaybeFalsy<T> = T | FalsyValues;
90
90
  /**
91
91
  * Represents a type that can be either the specified type or a function returning that type.
92
92
  *
@@ -94,7 +94,7 @@ export type MaybeFalsy<T> = T | FalsyValues;
94
94
  * @template TArgs - Arguments type for the function
95
95
  * @returns T or a function that returns T
96
96
  */
97
- export type MaybeFn<T, TArgs extends any[] = any[]> = T | ((...args: TArgs) => T);
97
+ type MaybeFn<T, TArgs extends any[] = any[]> = T | ((...args: TArgs) => T);
98
98
  /**
99
99
  * Represents a class constructor type.
100
100
  *
@@ -102,14 +102,14 @@ export type MaybeFn<T, TArgs extends any[] = any[]> = T | ((...args: TArgs) => T
102
102
  * @template Args - Constructor arguments type
103
103
  * @returns Constructor function for T with specified arguments
104
104
  */
105
- export type Class<T, Args extends any[] = any[]> = new (...args: Args) => T;
105
+ type Class<T, Args extends any[] = any[]> = new (...args: Args) => T;
106
106
  /**
107
107
  * Creates a deeply partial version of a type, making all properties optional recursively.
108
108
  *
109
109
  * @template T - The type to make deeply partial
110
110
  * @returns A type with all properties optional at any depth
111
111
  */
112
- export type DeepPartial<T> = T extends BrowserNativeObject ? T : {
112
+ type DeepPartial<T> = T extends BrowserNativeObject ? T : {
113
113
  [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] : DeepPartial<T[K]>;
114
114
  };
115
115
  /**
@@ -119,7 +119,7 @@ export type DeepPartial<T> = T extends BrowserNativeObject ? T : {
119
119
  * @template K - The keys to make optional
120
120
  * @returns A type with specified keys optional and others required
121
121
  */
122
- export type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
122
+ type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
123
123
  /**
124
124
  * Makes specified keys of a type required while keeping the rest optional.
125
125
  *
@@ -127,7 +127,7 @@ export type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>
127
127
  * @template K - The keys to make required
128
128
  * @returns A type with specified keys required and others optional
129
129
  */
130
- export type RequiredKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
130
+ type RequiredKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
131
131
  /**
132
132
  * Extracts the inner type from a Promise type.
133
133
  *
@@ -136,14 +136,14 @@ export type RequiredKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K
136
136
  * @template T - The type that may be a Promise
137
137
  * @returns The resolved type of the Promise or T itself if not a Promise
138
138
  */
139
- export type Unpromise<T> = T extends Promise<infer TValue> ? TValue : T;
139
+ type Unpromise<T> = T extends Promise<infer TValue> ? TValue : T;
140
140
  /**
141
141
  * Makes all values in an object type possibly undefined.
142
142
  *
143
143
  * @template T - The object type to make values possibly undefined
144
144
  * @returns A type with all values possibly undefined
145
145
  */
146
- export type MaybeValues<T extends AnyObject> = {
146
+ type MaybeValues<T extends AnyObject> = {
147
147
  [K in keyof T]: Maybe<T[K]>;
148
148
  };
149
149
  /**
@@ -153,7 +153,7 @@ export type MaybeValues<T extends AnyObject> = {
153
153
  * @template TValues - The value type to match
154
154
  * @returns Union of keys whose values match TValues
155
155
  */
156
- export type KeyOfByValue<T, TValues> = ValueOf<{
156
+ type KeyOfByValue<T, TValues> = ValueOf<{
157
157
  [K in keyof T]: T[K] extends TValues ? K : never;
158
158
  }>;
159
159
  /**
@@ -163,7 +163,7 @@ export type KeyOfByValue<T, TValues> = ValueOf<{
163
163
  * @template TValues - The value type to match
164
164
  * @returns A type with only the properties whose values match TValues
165
165
  */
166
- export type PickByValue<T, TValues> = Pick<T, KeyOfByValue<T, TValues>>;
166
+ type PickByValue<T, TValues> = Pick<T, KeyOfByValue<T, TValues>>;
167
167
  /**
168
168
  * Omits properties from an object whose values match a specific type.
169
169
  *
@@ -171,14 +171,14 @@ export type PickByValue<T, TValues> = Pick<T, KeyOfByValue<T, TValues>>;
171
171
  * @template TValues - The value type to match
172
172
  * @returns A type with the properties whose values match TValues omitted
173
173
  */
174
- export type OmitByValue<T, TValues> = Omit<T, KeyOfByValue<T, TValues>>;
174
+ type OmitByValue<T, TValues> = Omit<T, KeyOfByValue<T, TValues>>;
175
175
  /**
176
176
  * Determines if all properties in a type are optional.
177
177
  *
178
178
  * @template T - The type to check
179
179
  * @returns True if all properties are optional, false otherwise
180
180
  */
181
- export type IsPartial<T> = keyof T extends never ? true : {
181
+ type IsPartial<T> = keyof T extends never ? true : {
182
182
  [K in keyof T]-?: undefined extends T[K] ? never : K;
183
183
  } extends {
184
184
  [K in keyof T]: never;
@@ -189,7 +189,7 @@ export type IsPartial<T> = keyof T extends never ? true : {
189
189
  * @template T - The type to check
190
190
  * @returns True if all properties are optional, false otherwise
191
191
  */
192
- export type AllPropertiesOptional<T> = IsPartial<T>;
192
+ type AllPropertiesOptional<T> = IsPartial<T>;
193
193
  /**
194
194
  * Conditionally makes a type partially optional based on a condition.
195
195
  *
@@ -197,14 +197,14 @@ export type AllPropertiesOptional<T> = IsPartial<T>;
197
197
  * @template TObject - The object type to make partial if condition is true
198
198
  * @returns Partial<TObject> if TCondition is true, otherwise TObject
199
199
  */
200
- export type PartialIf<TCondition, TObject> = TCondition extends true ? Partial<TObject> : TObject;
200
+ type PartialIf<TCondition, TObject> = TCondition extends true ? Partial<TObject> : TObject;
201
201
  /**
202
202
  * Converts a record type into an array of key-value pairs.
203
203
  *
204
204
  * @template T - The record type to convert
205
205
  * @returns Array of [key, value] tuples
206
206
  */
207
- export type RecordEntries<T extends AnyObject> = T extends Record<infer Keys, infer Values> ? [Keys, Values][] : T extends Partial<Record<infer Keys, infer Values>> ? [Keys, Values][] : never;
207
+ type RecordEntries<T extends AnyObject> = T extends Record<infer Keys, infer Values> ? [Keys, Values][] : T extends Partial<Record<infer Keys, infer Values>> ? [Keys, Values][] : never;
208
208
  /**
209
209
  * Renames a key in an object type, preserving the optional nature of the property.
210
210
  *
@@ -213,7 +213,7 @@ export type RecordEntries<T extends AnyObject> = T extends Record<infer Keys, in
213
213
  * @template TNewKey - The new key name
214
214
  * @returns A type with the key renamed
215
215
  */
216
- export type RenameKey<TObject, TOldKey extends keyof TObject, TNewKey extends string> = Omit<TObject, TOldKey> & IsPartial<Pick<TObject, TOldKey>> extends true ? {
216
+ type RenameKey<TObject, TOldKey extends keyof TObject, TNewKey extends string> = Omit<TObject, TOldKey> & IsPartial<Pick<TObject, TOldKey>> extends true ? {
217
217
  [K in TNewKey]?: TObject[TOldKey];
218
218
  } : {
219
219
  [K in TNewKey]: TObject[TOldKey];
@@ -224,21 +224,21 @@ export type RenameKey<TObject, TOldKey extends keyof TObject, TNewKey extends st
224
224
  * @template T - The object type to check
225
225
  * @returns True if the object is empty, false otherwise
226
226
  */
227
- export type IsObjectEmpty<T extends AnyObject> = T extends EmptyObject ? true : keyof T extends never ? true : never;
227
+ type IsObjectEmpty<T extends AnyObject> = T extends EmptyObject ? true : keyof T extends never ? true : never;
228
228
  /**
229
229
  * Determines if an array type is empty.
230
230
  *
231
231
  * @template T - The array type to check
232
232
  * @returns True if the array is empty, false otherwise
233
233
  */
234
- export type IsEmptyArray<T extends readonly any[]> = T extends [] ? true : false;
234
+ type IsEmptyArray<T extends readonly any[]> = T extends [] ? true : false;
235
235
  /**
236
236
  * Extracts the parameter types from a function type.
237
237
  *
238
238
  * @template T - The function type to extract parameters from
239
239
  * @returns Union of all possible parameter types
240
240
  */
241
- export type Params<T extends (...args: any) => any> = T extends {
241
+ type Params<T extends (...args: any) => any> = T extends {
242
242
  (...args: infer P1): any;
243
243
  (...args: infer P2): any;
244
244
  } ? P1 | P2 : T extends (...args: infer P) => any ? P : never;
@@ -247,14 +247,14 @@ export type Params<T extends (...args: any) => any> = T extends {
247
247
  *
248
248
  * @returns Union of browser native object types
249
249
  */
250
- export type BrowserNativeObject = Date | FileList | File | Element | Node;
250
+ type BrowserNativeObject = Date | FileList | File | Element | Node;
251
251
  /**
252
252
  * Removes undefined from a type.
253
253
  *
254
254
  * @template T - The type to remove undefined from
255
255
  * @returns T with undefined removed
256
256
  */
257
- export type NonUndefined<T> = T extends undefined ? never : T;
257
+ type NonUndefined<T> = T extends undefined ? never : T;
258
258
  /**
259
259
  * Creates a literal union type that includes both a specific literal type and a primitive type.
260
260
  *
@@ -262,7 +262,7 @@ export type NonUndefined<T> = T extends undefined ? never : T;
262
262
  * @template U - The primitive type
263
263
  * @returns Union of T and U with a private property to prevent widening
264
264
  */
265
- export type LiteralUnion<T extends U, U extends Primitive> = T | (U & {
265
+ type LiteralUnion<T extends U, U extends Primitive> = T | (U & {
266
266
  _?: never;
267
267
  });
268
268
  /**
@@ -271,7 +271,7 @@ export type LiteralUnion<T extends U, U extends Primitive> = T | (U & {
271
271
  * @template T - The type to extract objects from
272
272
  * @returns T if it's an object, otherwise never
273
273
  */
274
- export type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
274
+ type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
275
275
  /**
276
276
  * Replace value in object by key
277
277
  *
@@ -287,7 +287,7 @@ export type ExtractObjects<T> = T extends infer U ? U extends object ? U : never
287
287
  * @template V - The new value type
288
288
  * @returns A type with the specified key replaced with the new value type
289
289
  */
290
- export type OverrideKey<T, K extends keyof T, V> = {
290
+ type OverrideKey<T, K extends keyof T, V> = {
291
291
  [KK in keyof T]: KK extends K ? V : T[KK];
292
292
  };
293
293
  /**
@@ -297,14 +297,14 @@ export type OverrideKey<T, K extends keyof T, V> = {
297
297
  * @template Y - Second type to compare
298
298
  * @returns True if types are equal, false otherwise
299
299
  */
300
- export type IfEquals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
300
+ type IfEquals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
301
301
  /**
302
302
  * Gets the writable keys of a type (keys that are not readonly).
303
303
  *
304
304
  * @template T - The type to extract writable keys from
305
305
  * @returns Union of keys that are not readonly
306
306
  */
307
- export type WritableKeys<T> = {
307
+ type WritableKeys<T> = {
308
308
  [K in keyof T]: IfEquals<{
309
309
  [Q in K]: T[K];
310
310
  }, {
@@ -317,7 +317,7 @@ export type WritableKeys<T> = {
317
317
  * @template T - The type to extract readonly keys from
318
318
  * @returns Union of keys that are readonly
319
319
  */
320
- export type ReadonlyKeys<T> = {
320
+ type ReadonlyKeys<T> = {
321
321
  [P in keyof T]-?: IfEquals<{
322
322
  [Q in P]: T[P];
323
323
  }, {
@@ -330,35 +330,35 @@ export type ReadonlyKeys<T> = {
330
330
  * @template T - The type to extract non-readonly properties from
331
331
  * @returns A type with only the non-readonly properties
332
332
  */
333
- export type NonReadonly<T> = Pick<T, WritableKeys<T>>;
333
+ type NonReadonly<T> = Pick<T, WritableKeys<T>>;
334
334
  /**
335
335
  * Determines if a type is an array.
336
336
  *
337
337
  * @template T - The type to check
338
338
  * @returns True if the type is an array, false otherwise
339
339
  */
340
- export type IsArray<T> = T extends object ? T extends Function ? false : T extends any[] ? true : false : false;
340
+ type IsArray<T> = T extends object ? T extends Function ? false : T extends any[] ? true : false : false;
341
341
  /**
342
342
  * Determines if a type is a function.
343
343
  *
344
344
  * @template T - The type to check
345
345
  * @returns True if the type is a function, false otherwise
346
346
  */
347
- export type IsFunction<T> = T extends object ? T extends Function ? true : false : false;
347
+ type IsFunction<T> = T extends object ? T extends Function ? true : false : false;
348
348
  /**
349
349
  * Determines if a type is an object (but not an array or function).
350
350
  *
351
351
  * @template T - The type to check
352
352
  * @returns True if the type is an object, false otherwise
353
353
  */
354
- export type IsObject<T> = T extends object ? T extends Function ? false : T extends any[] ? false : true : false;
354
+ type IsObject<T> = T extends object ? T extends Function ? false : T extends any[] ? false : true : false;
355
355
  /**
356
356
  * Creates a deep copy of an object type, preserving the structure.
357
357
  *
358
358
  * @template T - The type to copy
359
359
  * @returns A deep copy of the type
360
360
  */
361
- export type CopyObject<T> = IsObject<T> extends true ? {
361
+ type CopyObject<T> = IsObject<T> extends true ? {
362
362
  [K in keyof T]: IsObject<T[K]> extends true ? CopyObject<T[K]> : T[K];
363
363
  } : T;
364
364
  /**
@@ -367,7 +367,7 @@ export type CopyObject<T> = IsObject<T> extends true ? {
367
367
  * @template T - The type to make possibly a promise
368
368
  * @returns T or Promise<T>
369
369
  */
370
- export type MaybePromise<T> = T | Promise<T>;
370
+ type MaybePromise<T> = T | Promise<T>;
371
371
  /**
372
372
  * Makes specified keys of a type required while keeping the rest optional.
373
373
  *
@@ -375,7 +375,7 @@ export type MaybePromise<T> = T | Promise<T>;
375
375
  * @template TKey - The key(s) to make required
376
376
  * @returns A type with specified keys required and others optional
377
377
  */
378
- export type WithRequired<TTarget, TKey extends keyof TTarget> = TTarget & {
378
+ type WithRequired<TTarget, TKey extends keyof TTarget> = TTarget & {
379
379
  [_ in TKey]: {};
380
380
  };
381
381
  /**
@@ -384,27 +384,28 @@ export type WithRequired<TTarget, TKey extends keyof TTarget> = TTarget & {
384
384
  * @template T - The array type to extract index keys from
385
385
  * @returns Union of index keys (string representations of numbers)
386
386
  */
387
- export type IndexKeys<T extends any[]> = Extract<keyof T, `${number}`>;
387
+ type IndexKeys<T extends any[]> = Extract<keyof T, `${number}`>;
388
388
  /**
389
389
  * Removes undefined from a type.
390
390
  *
391
391
  * @template T - The type to remove undefined from
392
392
  * @returns T with undefined removed
393
393
  */
394
- export type Defined<T> = Exclude<T, undefined>;
394
+ type Defined<T> = Exclude<T, undefined>;
395
395
  /**
396
396
  * Check existing key in object (T)
397
397
  */
398
- export type HasKey<T, TKey extends string> = string extends keyof T ? false : TKey extends keyof T ? true : false;
398
+ type HasKey<T, TKey extends string> = string extends keyof T ? false : TKey extends keyof T ? true : false;
399
399
  /**
400
400
  * @deprecated use `HasKey`
401
401
  */
402
- export type HasSpecificKey<T, TKey extends string> = HasKey<T, TKey>;
402
+ type HasSpecificKey<T, TKey extends string> = HasKey<T, TKey>;
403
403
  /**
404
404
  * Checks type is any
405
405
  *
406
406
  * Returns true if T is any
407
407
  */
408
- export type IsAny<T> = 0 extends 1 & T ? true : false;
409
- export type IsUnknown<T> = [unknown] extends [T] ? true : false;
410
- //# sourceMappingURL=types.d.ts.map
408
+ type IsAny<T> = 0 extends 1 & T ? true : false;
409
+ type IsUnknown<T> = [unknown] extends [T] ? true : false;
410
+
411
+ export type { AllPropertiesOptional, AnyFunction, AnyObject, AnyPrimitive, BrowserNativeObject, Class, CopyObject, DeepPartial, Defined, EmptyObject, ExtractEnumKeys, ExtractEnumValues, ExtractObjects, FalsyValues, HasKey, HasSpecificKey, IfEquals, IndexKeys, IsAny, IsArray, IsEmptyArray, IsFunction, IsObject, IsObjectEmpty, IsPartial, IsUnknown, KeyOfByValue, LiteralUnion, Maybe, MaybeFalsy, MaybeFn, MaybePromise, MaybeValues, NonReadonly, NonUndefined, Nullable, OmitByValue, OverrideKey, Params, PartialIf, PartialKeys, PickByValue, Primitive, ReadonlyKeys, RecordEntries, RenameKey, RequiredKeys, UnionToIntersection, Unpromise, ValueOf, WithRequired, WritableKeys };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.global.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.global.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -408,4 +408,4 @@ type HasSpecificKey<T, TKey extends string> = HasKey<T, TKey>;
408
408
  */
409
409
  type IsAny<T> = 0 extends 1 & T ? true : false;
410
410
  type IsUnknown<T> = [unknown] extends [T] ? true : false;
411
- //# sourceMappingURL=types.d.ts.map
411
+
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=types.global.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.global.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/vibrate.cjs CHANGED
@@ -1,2 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.vibrate=t=>{"vibrate"in navigator&&navigator.vibrate(t)};
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vibrate = (pattern) => {
4
+ if ("vibrate" in navigator) {
5
+ navigator.vibrate(pattern);
6
+ }
7
+ };
8
+ exports.vibrate = vibrate;
2
9
  //# sourceMappingURL=vibrate.cjs.map
package/vibrate.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"vibrate.cjs","sources":["../src/vibrate.ts"],"sourcesContent":["/**\n * Вибрации по шаблону\n */\nexport const vibrate = (pattern: number | number[]) => {\n if ('vibrate' in navigator) {\n navigator.vibrate(pattern);\n }\n};\n"],"names":["pattern","navigator","vibrate"],"mappings":"gGAGwBA,IAClB,YAAaC,WACfA,UAAUC,QAAQF"}
1
+ {"version":3,"file":"vibrate.cjs","sources":["../src/vibrate.ts"],"sourcesContent":["/**\n * Вибрации по шаблону\n */\nexport const vibrate = (pattern: number | number[]) => {\n if ('vibrate' in navigator) {\n navigator.vibrate(pattern);\n }\n};\n"],"names":[],"mappings":";;AAGO,MAAM,UAAU,CAAC,YAA+B;AACrD,MAAI,aAAa,WAAW;AAC1B,cAAU,QAAQ,OAAO;AAAA,EAC3B;AACF;;"}
package/vibrate.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Вибрации по шаблону
3
3
  */
4
- export declare const vibrate: (pattern: number | number[]) => void;
5
- //# sourceMappingURL=vibrate.d.ts.map
4
+ declare const vibrate: (pattern: number | number[]) => void;
5
+
6
+ export { vibrate };
package/async.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../src/async.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,OAAM,MAAU,qBACe,CAAC;AAEtD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAU,WAAS,qBACU,CAAC;AAEpD;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GACrB,cAAc,MAAM,OAAO,GAAG,IAAI,EAClC,cAAc,OAAO,SAYtB,CAAC;AAEF,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,YAAY,EACtB,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,WAAW,QAkBrB;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,YAAY,EACtB,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,WAAW,QAerB"}
package/common.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,MAAM,EAAE,KAAK,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,EAAE,KAAK,SAAS,GAAG,EAAE,GAAG,EAAE,EAC3D,IAAI,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAC1B,GAAG,MAAM,KAAK,WAOf,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAdE,MAAM,EAAE,KAAK,SAAS,GAAG,EAAE,WAClD,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,WACjB,KAAK,WAY0B,CAAC"}
@@ -1,15 +0,0 @@
1
- export interface Counter<TValue = number> {
2
- (): TValue;
3
- counter: number;
4
- value: TValue;
5
- increment(): TValue;
6
- decrement(): TValue;
7
- reset(): void;
8
- }
9
- /**
10
- * @deprecated use {`Counter`}. Will be removed in next major release
11
- */
12
- export interface CounterFn<TValue = number> extends Counter<TValue> {
13
- }
14
- export declare const createCounter: <TValue = number>(processValue?: (value: number) => TValue, initial?: number) => Counter<TValue>;
15
- //# sourceMappingURL=counter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"counter.d.ts","sourceRoot":"","sources":["../../src/complex/counter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO,CAAC,MAAM,GAAG,MAAM;IACtC,IAAI,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,IAAI,MAAM,CAAC;IACpB,SAAS,IAAI,MAAM,CAAC;IACpB,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,MAAM,GAAG,MAAM,CAAE,SAAQ,OAAO,CAAC,MAAM,CAAC;CAAG;AAEtE,eAAO,MAAM,aAAa,GAAI,MAAM,GAAG,MAAM,EAC3C,eAAe,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACxC,UAAS,MAAU,KAClB,OAAO,CAAC,MAAM,CAsBhB,CAAC"}
@@ -1,11 +0,0 @@
1
- import { AnyObject, Maybe } from '../utils/types.ts';
2
- /**
3
- * Создает глобальный конфиг, который может быть доступен в любой точке в коде
4
- */
5
- export declare const createGlobalConfig: <T extends AnyObject>(defaultValue: T, accessSymbol?: keyof any) => T;
6
- export declare const createGlobalDynamicConfig: <T extends AnyObject>(processFn: (change: Maybe<Partial<T>>, current: Maybe<T>) => T, accessSymbol?: keyof any) => {
7
- get: () => T;
8
- set: (value: T | null | undefined) => T | null | undefined;
9
- update: (value: Partial<T>) => void;
10
- };
11
- //# sourceMappingURL=global-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-config.d.ts","sourceRoot":"","sources":["../../src/complex/global-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAyB5D;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,SAAS,EACpD,cAAc,CAAC,EACf,eAAe,MAAM,GAAG,MAIzB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,CAAC,SAAS,SAAS,EAC3D,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAC9D,eAAe,MAAM,GAAG;;;oBAWN,OAAO,CAAC,CAAC,CAAC;CAK7B,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from './counter.js';
2
- export * from './global-config.js';
3
- export * from './modules-factory.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/complex/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules-factory.d.ts","sourceRoot":"","sources":["../../src/complex/modules-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,KAAK,EACL,WAAW,EACX,SAAS,EACV,MAAM,qBAAqB,CAAC;AAE7B,KAAK,kBAAkB,CAAC,eAAe,SAAS,SAAS,GAAG,WAAW,IAAI;IACzE,OAAO,CAAC,SAAS,EAAE,KAAK,SAAS,eAAe,EAC9C,WAAW,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,EACtC,IAAI,EAAE,KAAK,GACV,SAAS,CAAC;CACd,GAAG,CAAC,eAAe,SAAS,WAAW,GACpC;IAAE,IAAI,CAAC,EAAE,eAAe,CAAA;CAAE,GAC1B;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC,CAAC;AAE/B;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,cAAc,CAAC,eAAe,SAAS,SAAS,GAAG,WAAW;IAM7D,OAAO,CAAC,MAAM;IAL1B;;;;OAIG;gBACiB,MAAM,EAAE,kBAAkB,CAAC,eAAe,CAAC;IAE/D;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,KAAK,SAAS,eAAe,GAAG,eAAe,EAC/D,WAAW,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,EACtC,GAAG,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,eAAe,CAAC,CAAC,SAAS,IAAI,GAC/D,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,eAAe,CAAC,CAAC,GAChD,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,eAAe,CAAC,CAAC;CAOtD"}
package/cookie.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cookie.d.ts","sourceRoot":"","sources":["../src/cookie.ts"],"names":[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B,iBAAiB,CAC/B,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,IAAI,EACX,OAAO,CAAC,EAAE,OAAO,GAChB,MAAM,CAAC;AACV,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC"}
package/device.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../src/device.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,WAOR,CAAC;AAElB,eAAO,MAAM,mBAAmB,eAe/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAM/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,eACiB,CAAC;AAEjD,eAAO,MAAM,cAAc,SAAwB,CAAC;AAEpD,eAAO,MAAM,cAAc,SAAwB,CAAC;AAEpD,eAAO,MAAM,aAAa,SAAmC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"encodings.d.ts","sourceRoot":"","sources":["../src/encodings.ts"],"names":[],"mappings":"AAoQA,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,UASzC"}
package/errors.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,KAAK,oBAAoB,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC;AACnD,KAAK,yBAAyB,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;YAAW,OAAO;;;;CAqB1C,CAAC"}
package/file.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/file.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,GAAI,MAAM,IAAI,oBAW3C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,EAAE,WAAW,MAAM,oBAW5D,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from './constants.js';
2
- export * from './number.js';
3
- export * from './percent.js';
4
- export * from './skip-spaces.js';
5
- //# sourceMappingURL=_exports.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_exports.d.ts","sourceRoot":"","sources":["../../src/format/_exports.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const NO_VALUE = "\u2013";
2
- export declare const HYPHEN = "-";
3
- export declare const INFINITY = "\u221E";
4
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/format/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,WAAM,CAAC;AAE5B,eAAO,MAAM,MAAM,MAAM,CAAC;AAE1B,eAAO,MAAM,QAAQ,WAAM,CAAC"}
package/format/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import * as format from './_exports.js';
2
- export { format };
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/format/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,36 +0,0 @@
1
- import { Maybe } from '../utils/types.ts';
2
- export interface NumberFormatSettings {
3
- delimiter?: string;
4
- /**
5
- * digitsOnlyForFloat - Show digits after decimal point only if they are not zeros after converting to number.
6
- * Example: "0.00" -> "0", "0.10" -> "0.1", but "0.003" -> "0.003"
7
- *
8
- * @default true
9
- */
10
- digitsOnlyForFloat?: boolean;
11
- /**
12
- * Text which will be returned if the value is undefined, null, NaN, Infinity or empty string.
13
- * Example: "–" will be returned if the value is undefined and emptyText is "–".
14
- */
15
- emptyText?: string;
16
- /**
17
- * Text to append to the end of the formatted number.
18
- * Example: if value is 1000 and postfix is "₽", result will be "1 000₽".
19
- */
20
- postfix?: string;
21
- /**
22
- * Fixed number of digits after the decimal point (number.toFixed() method)
23
- * If set to false, the truncation is ignored!
24
- */
25
- digits?: number | false;
26
- /**
27
- * Remove trailing zeros from the end of the number
28
- * Example: 0.010000000000000000000000000000000000000000000 -> 0.01
29
- */
30
- cutZeros?: boolean;
31
- }
32
- export declare const number: {
33
- (rawValue: Maybe<string | number>, userSettings?: Maybe<NumberFormatSettings>): string;
34
- defaultSettings: NumberFormatSettings;
35
- };
36
- //# sourceMappingURL=number.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/format/number.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM;eACP,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,iBACjB,KAAK,CAAC,oBAAoB,CAAC,GACzC,MAAM;;CAqDR,CAAC"}