all-you-need 0.1.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.
package/dist/index.cjs ADDED
@@ -0,0 +1,358 @@
1
+ 'use strict';
2
+
3
+ var chunkBJCELHLJ_cjs = require('./chunk-BJCELHLJ.cjs');
4
+ require('./chunk-RNO7ZT65.cjs');
5
+ var chunkSEJ5J4LY_cjs = require('./chunk-SEJ5J4LY.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "Logger", {
10
+ enumerable: true,
11
+ get: function () { return chunkBJCELHLJ_cjs.Logger; }
12
+ });
13
+ Object.defineProperty(exports, "Queue", {
14
+ enumerable: true,
15
+ get: function () { return chunkBJCELHLJ_cjs.Queue; }
16
+ });
17
+ Object.defineProperty(exports, "Result", {
18
+ enumerable: true,
19
+ get: function () { return chunkBJCELHLJ_cjs.Result; }
20
+ });
21
+ Object.defineProperty(exports, "Stack", {
22
+ enumerable: true,
23
+ get: function () { return chunkBJCELHLJ_cjs.Stack; }
24
+ });
25
+ Object.defineProperty(exports, "TypedStorage", {
26
+ enumerable: true,
27
+ get: function () { return chunkBJCELHLJ_cjs.TypedStorage; }
28
+ });
29
+ Object.defineProperty(exports, "addDays", {
30
+ enumerable: true,
31
+ get: function () { return chunkSEJ5J4LY_cjs.addDays; }
32
+ });
33
+ Object.defineProperty(exports, "addMonths", {
34
+ enumerable: true,
35
+ get: function () { return chunkSEJ5J4LY_cjs.addMonths; }
36
+ });
37
+ Object.defineProperty(exports, "average", {
38
+ enumerable: true,
39
+ get: function () { return chunkSEJ5J4LY_cjs.average; }
40
+ });
41
+ Object.defineProperty(exports, "capitalize", {
42
+ enumerable: true,
43
+ get: function () { return chunkSEJ5J4LY_cjs.capitalize; }
44
+ });
45
+ Object.defineProperty(exports, "chunk", {
46
+ enumerable: true,
47
+ get: function () { return chunkSEJ5J4LY_cjs.chunk; }
48
+ });
49
+ Object.defineProperty(exports, "clamp", {
50
+ enumerable: true,
51
+ get: function () { return chunkSEJ5J4LY_cjs.clamp; }
52
+ });
53
+ Object.defineProperty(exports, "compact", {
54
+ enumerable: true,
55
+ get: function () { return chunkSEJ5J4LY_cjs.compact; }
56
+ });
57
+ Object.defineProperty(exports, "daysBetween", {
58
+ enumerable: true,
59
+ get: function () { return chunkSEJ5J4LY_cjs.daysBetween; }
60
+ });
61
+ Object.defineProperty(exports, "debounce", {
62
+ enumerable: true,
63
+ get: function () { return chunkSEJ5J4LY_cjs.debounce; }
64
+ });
65
+ Object.defineProperty(exports, "deepClone", {
66
+ enumerable: true,
67
+ get: function () { return chunkSEJ5J4LY_cjs.deepClone; }
68
+ });
69
+ Object.defineProperty(exports, "deepEqual", {
70
+ enumerable: true,
71
+ get: function () { return chunkSEJ5J4LY_cjs.deepEqual; }
72
+ });
73
+ Object.defineProperty(exports, "deepMerge", {
74
+ enumerable: true,
75
+ get: function () { return chunkSEJ5J4LY_cjs.deepMerge; }
76
+ });
77
+ Object.defineProperty(exports, "diff", {
78
+ enumerable: true,
79
+ get: function () { return chunkSEJ5J4LY_cjs.diff; }
80
+ });
81
+ Object.defineProperty(exports, "difference", {
82
+ enumerable: true,
83
+ get: function () { return chunkSEJ5J4LY_cjs.difference; }
84
+ });
85
+ Object.defineProperty(exports, "escapeHtml", {
86
+ enumerable: true,
87
+ get: function () { return chunkSEJ5J4LY_cjs.escapeHtml; }
88
+ });
89
+ Object.defineProperty(exports, "escapeRegExp", {
90
+ enumerable: true,
91
+ get: function () { return chunkSEJ5J4LY_cjs.escapeRegExp; }
92
+ });
93
+ Object.defineProperty(exports, "first", {
94
+ enumerable: true,
95
+ get: function () { return chunkSEJ5J4LY_cjs.first; }
96
+ });
97
+ Object.defineProperty(exports, "flatten", {
98
+ enumerable: true,
99
+ get: function () { return chunkSEJ5J4LY_cjs.flatten; }
100
+ });
101
+ Object.defineProperty(exports, "flattenObject", {
102
+ enumerable: true,
103
+ get: function () { return chunkSEJ5J4LY_cjs.flattenObject; }
104
+ });
105
+ Object.defineProperty(exports, "formatBytes", {
106
+ enumerable: true,
107
+ get: function () { return chunkSEJ5J4LY_cjs.formatBytes; }
108
+ });
109
+ Object.defineProperty(exports, "formatCurrency", {
110
+ enumerable: true,
111
+ get: function () { return chunkSEJ5J4LY_cjs.formatCurrency; }
112
+ });
113
+ Object.defineProperty(exports, "formatDate", {
114
+ enumerable: true,
115
+ get: function () { return chunkSEJ5J4LY_cjs.formatDate; }
116
+ });
117
+ Object.defineProperty(exports, "formatNumber", {
118
+ enumerable: true,
119
+ get: function () { return chunkSEJ5J4LY_cjs.formatNumber; }
120
+ });
121
+ Object.defineProperty(exports, "groupBy", {
122
+ enumerable: true,
123
+ get: function () { return chunkSEJ5J4LY_cjs.groupBy; }
124
+ });
125
+ Object.defineProperty(exports, "hasProperty", {
126
+ enumerable: true,
127
+ get: function () { return chunkSEJ5J4LY_cjs.hasProperty; }
128
+ });
129
+ Object.defineProperty(exports, "intersection", {
130
+ enumerable: true,
131
+ get: function () { return chunkSEJ5J4LY_cjs.intersection; }
132
+ });
133
+ Object.defineProperty(exports, "isArray", {
134
+ enumerable: true,
135
+ get: function () { return chunkSEJ5J4LY_cjs.isArray; }
136
+ });
137
+ Object.defineProperty(exports, "isBoolean", {
138
+ enumerable: true,
139
+ get: function () { return chunkSEJ5J4LY_cjs.isBoolean; }
140
+ });
141
+ Object.defineProperty(exports, "isBrowser", {
142
+ enumerable: true,
143
+ get: function () { return chunkSEJ5J4LY_cjs.isBrowser; }
144
+ });
145
+ Object.defineProperty(exports, "isDefined", {
146
+ enumerable: true,
147
+ get: function () { return chunkSEJ5J4LY_cjs.isDefined; }
148
+ });
149
+ Object.defineProperty(exports, "isEmail", {
150
+ enumerable: true,
151
+ get: function () { return chunkSEJ5J4LY_cjs.isEmail; }
152
+ });
153
+ Object.defineProperty(exports, "isEmpty", {
154
+ enumerable: true,
155
+ get: function () { return chunkSEJ5J4LY_cjs.isEmpty; }
156
+ });
157
+ Object.defineProperty(exports, "isFunction", {
158
+ enumerable: true,
159
+ get: function () { return chunkSEJ5J4LY_cjs.isFunction; }
160
+ });
161
+ Object.defineProperty(exports, "isINN", {
162
+ enumerable: true,
163
+ get: function () { return chunkSEJ5J4LY_cjs.isINN; }
164
+ });
165
+ Object.defineProperty(exports, "isNode", {
166
+ enumerable: true,
167
+ get: function () { return chunkSEJ5J4LY_cjs.isNode; }
168
+ });
169
+ Object.defineProperty(exports, "isNonNullable", {
170
+ enumerable: true,
171
+ get: function () { return chunkSEJ5J4LY_cjs.isNonNullable; }
172
+ });
173
+ Object.defineProperty(exports, "isNumber", {
174
+ enumerable: true,
175
+ get: function () { return chunkSEJ5J4LY_cjs.isNumber; }
176
+ });
177
+ Object.defineProperty(exports, "isObject", {
178
+ enumerable: true,
179
+ get: function () { return chunkSEJ5J4LY_cjs.isObject; }
180
+ });
181
+ Object.defineProperty(exports, "isPhone", {
182
+ enumerable: true,
183
+ get: function () { return chunkSEJ5J4LY_cjs.isPhone; }
184
+ });
185
+ Object.defineProperty(exports, "isSSR", {
186
+ enumerable: true,
187
+ get: function () { return chunkSEJ5J4LY_cjs.isSSR; }
188
+ });
189
+ Object.defineProperty(exports, "isString", {
190
+ enumerable: true,
191
+ get: function () { return chunkSEJ5J4LY_cjs.isString; }
192
+ });
193
+ Object.defineProperty(exports, "isStrongPassword", {
194
+ enumerable: true,
195
+ get: function () { return chunkSEJ5J4LY_cjs.isStrongPassword; }
196
+ });
197
+ Object.defineProperty(exports, "isToday", {
198
+ enumerable: true,
199
+ get: function () { return chunkSEJ5J4LY_cjs.isToday; }
200
+ });
201
+ Object.defineProperty(exports, "isURL", {
202
+ enumerable: true,
203
+ get: function () { return chunkSEJ5J4LY_cjs.isURL; }
204
+ });
205
+ Object.defineProperty(exports, "isYesterday", {
206
+ enumerable: true,
207
+ get: function () { return chunkSEJ5J4LY_cjs.isYesterday; }
208
+ });
209
+ Object.defineProperty(exports, "last", {
210
+ enumerable: true,
211
+ get: function () { return chunkSEJ5J4LY_cjs.last; }
212
+ });
213
+ Object.defineProperty(exports, "mapKeys", {
214
+ enumerable: true,
215
+ get: function () { return chunkSEJ5J4LY_cjs.mapKeys; }
216
+ });
217
+ Object.defineProperty(exports, "mapValues", {
218
+ enumerable: true,
219
+ get: function () { return chunkSEJ5J4LY_cjs.mapValues; }
220
+ });
221
+ Object.defineProperty(exports, "maskString", {
222
+ enumerable: true,
223
+ get: function () { return chunkSEJ5J4LY_cjs.maskString; }
224
+ });
225
+ Object.defineProperty(exports, "median", {
226
+ enumerable: true,
227
+ get: function () { return chunkSEJ5J4LY_cjs.median; }
228
+ });
229
+ Object.defineProperty(exports, "nanoid", {
230
+ enumerable: true,
231
+ get: function () { return chunkSEJ5J4LY_cjs.nanoid; }
232
+ });
233
+ Object.defineProperty(exports, "omit", {
234
+ enumerable: true,
235
+ get: function () { return chunkSEJ5J4LY_cjs.omit; }
236
+ });
237
+ Object.defineProperty(exports, "pLimit", {
238
+ enumerable: true,
239
+ get: function () { return chunkSEJ5J4LY_cjs.pLimit; }
240
+ });
241
+ Object.defineProperty(exports, "pSettle", {
242
+ enumerable: true,
243
+ get: function () { return chunkSEJ5J4LY_cjs.pSettle; }
244
+ });
245
+ Object.defineProperty(exports, "percentage", {
246
+ enumerable: true,
247
+ get: function () { return chunkSEJ5J4LY_cjs.percentage; }
248
+ });
249
+ Object.defineProperty(exports, "pick", {
250
+ enumerable: true,
251
+ get: function () { return chunkSEJ5J4LY_cjs.pick; }
252
+ });
253
+ Object.defineProperty(exports, "pluralize", {
254
+ enumerable: true,
255
+ get: function () { return chunkSEJ5J4LY_cjs.pluralize; }
256
+ });
257
+ Object.defineProperty(exports, "randomInt", {
258
+ enumerable: true,
259
+ get: function () { return chunkSEJ5J4LY_cjs.randomInt; }
260
+ });
261
+ Object.defineProperty(exports, "range", {
262
+ enumerable: true,
263
+ get: function () { return chunkSEJ5J4LY_cjs.range; }
264
+ });
265
+ Object.defineProperty(exports, "relativeTime", {
266
+ enumerable: true,
267
+ get: function () { return chunkSEJ5J4LY_cjs.relativeTime; }
268
+ });
269
+ Object.defineProperty(exports, "retry", {
270
+ enumerable: true,
271
+ get: function () { return chunkSEJ5J4LY_cjs.retry; }
272
+ });
273
+ Object.defineProperty(exports, "round", {
274
+ enumerable: true,
275
+ get: function () { return chunkSEJ5J4LY_cjs.round; }
276
+ });
277
+ Object.defineProperty(exports, "shuffle", {
278
+ enumerable: true,
279
+ get: function () { return chunkSEJ5J4LY_cjs.shuffle; }
280
+ });
281
+ Object.defineProperty(exports, "sleep", {
282
+ enumerable: true,
283
+ get: function () { return chunkSEJ5J4LY_cjs.sleep; }
284
+ });
285
+ Object.defineProperty(exports, "slugify", {
286
+ enumerable: true,
287
+ get: function () { return chunkSEJ5J4LY_cjs.slugify; }
288
+ });
289
+ Object.defineProperty(exports, "sortBy", {
290
+ enumerable: true,
291
+ get: function () { return chunkSEJ5J4LY_cjs.sortBy; }
292
+ });
293
+ Object.defineProperty(exports, "sum", {
294
+ enumerable: true,
295
+ get: function () { return chunkSEJ5J4LY_cjs.sum; }
296
+ });
297
+ Object.defineProperty(exports, "template", {
298
+ enumerable: true,
299
+ get: function () { return chunkSEJ5J4LY_cjs.template; }
300
+ });
301
+ Object.defineProperty(exports, "throttle", {
302
+ enumerable: true,
303
+ get: function () { return chunkSEJ5J4LY_cjs.throttle; }
304
+ });
305
+ Object.defineProperty(exports, "timeout", {
306
+ enumerable: true,
307
+ get: function () { return chunkSEJ5J4LY_cjs.timeout; }
308
+ });
309
+ Object.defineProperty(exports, "toCamelCase", {
310
+ enumerable: true,
311
+ get: function () { return chunkSEJ5J4LY_cjs.toCamelCase; }
312
+ });
313
+ Object.defineProperty(exports, "toKebabCase", {
314
+ enumerable: true,
315
+ get: function () { return chunkSEJ5J4LY_cjs.toKebabCase; }
316
+ });
317
+ Object.defineProperty(exports, "toPascalCase", {
318
+ enumerable: true,
319
+ get: function () { return chunkSEJ5J4LY_cjs.toPascalCase; }
320
+ });
321
+ Object.defineProperty(exports, "toSnakeCase", {
322
+ enumerable: true,
323
+ get: function () { return chunkSEJ5J4LY_cjs.toSnakeCase; }
324
+ });
325
+ Object.defineProperty(exports, "truncate", {
326
+ enumerable: true,
327
+ get: function () { return chunkSEJ5J4LY_cjs.truncate; }
328
+ });
329
+ Object.defineProperty(exports, "tryCatch", {
330
+ enumerable: true,
331
+ get: function () { return chunkSEJ5J4LY_cjs.tryCatch; }
332
+ });
333
+ Object.defineProperty(exports, "tryCatchSync", {
334
+ enumerable: true,
335
+ get: function () { return chunkSEJ5J4LY_cjs.tryCatchSync; }
336
+ });
337
+ Object.defineProperty(exports, "unescapeHtml", {
338
+ enumerable: true,
339
+ get: function () { return chunkSEJ5J4LY_cjs.unescapeHtml; }
340
+ });
341
+ Object.defineProperty(exports, "unique", {
342
+ enumerable: true,
343
+ get: function () { return chunkSEJ5J4LY_cjs.unique; }
344
+ });
345
+ Object.defineProperty(exports, "uniqueBy", {
346
+ enumerable: true,
347
+ get: function () { return chunkSEJ5J4LY_cjs.uniqueBy; }
348
+ });
349
+ Object.defineProperty(exports, "uuid", {
350
+ enumerable: true,
351
+ get: function () { return chunkSEJ5J4LY_cjs.uuid; }
352
+ });
353
+ Object.defineProperty(exports, "zip", {
354
+ enumerable: true,
355
+ get: function () { return chunkSEJ5J4LY_cjs.zip; }
356
+ });
357
+ //# sourceMappingURL=index.cjs.map
358
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+ export { AsyncReturnType, Branded, CamelCase, ConditionalExcept, ConditionalKeys, ConditionalPick, DeepPartial, DeepReadonly, EmptyObject, Entries, IsEqual, Join, JsonArray, JsonObject, JsonPrimitive, JsonValue, KebabCase, LiteralUnion, Merge, MutableKeys, Nullable, OmitByValue, Optional, PickByValue, Prettify, Promisable, ReadonlyKeys, RequiredDeep, SetNonNullable, SetOptional, SetRequired, Split, StringKeyOf, TupleToUnion, UnionToIntersection, ValueOf, Writable, WritableDeep } from './types/index.cjs';
2
+ export { LogLevel, Logger, LoggerOptions, Queue, Result, Stack, StorageOptions, TypedStorage } from './entities/index.cjs';
3
+ export { PasswordOptions, RetryOptions, SettledErr, SettledOk, SettledResult, addDays, addMonths, average, capitalize, chunk, clamp, compact, daysBetween, debounce, deepClone, deepEqual, deepMerge, diff, difference, escapeHtml, escapeRegExp, first, flatten, flattenObject, formatBytes, formatCurrency, formatDate, formatNumber, groupBy, hasProperty, intersection, isArray, isBoolean, isBrowser, isDefined, isEmail, isEmpty, isFunction, isINN, isNode, isNonNullable, isNumber, isObject, isPhone, isSSR, isString, isStrongPassword, isToday, isURL, isYesterday, last, mapKeys, mapValues, maskString, median, nanoid, omit, pLimit, pSettle, percentage, pick, pluralize, randomInt, range, relativeTime, retry, round, shuffle, sleep, slugify, sortBy, sum, template, throttle, timeout, toCamelCase, toKebabCase, toPascalCase, toSnakeCase, truncate, tryCatch, tryCatchSync, unescapeHtml, unique, uniqueBy, uuid, zip } from './utils/index.cjs';
@@ -0,0 +1,3 @@
1
+ export { AsyncReturnType, Branded, CamelCase, ConditionalExcept, ConditionalKeys, ConditionalPick, DeepPartial, DeepReadonly, EmptyObject, Entries, IsEqual, Join, JsonArray, JsonObject, JsonPrimitive, JsonValue, KebabCase, LiteralUnion, Merge, MutableKeys, Nullable, OmitByValue, Optional, PickByValue, Prettify, Promisable, ReadonlyKeys, RequiredDeep, SetNonNullable, SetOptional, SetRequired, Split, StringKeyOf, TupleToUnion, UnionToIntersection, ValueOf, Writable, WritableDeep } from './types/index.js';
2
+ export { LogLevel, Logger, LoggerOptions, Queue, Result, Stack, StorageOptions, TypedStorage } from './entities/index.js';
3
+ export { PasswordOptions, RetryOptions, SettledErr, SettledOk, SettledResult, addDays, addMonths, average, capitalize, chunk, clamp, compact, daysBetween, debounce, deepClone, deepEqual, deepMerge, diff, difference, escapeHtml, escapeRegExp, first, flatten, flattenObject, formatBytes, formatCurrency, formatDate, formatNumber, groupBy, hasProperty, intersection, isArray, isBoolean, isBrowser, isDefined, isEmail, isEmpty, isFunction, isINN, isNode, isNonNullable, isNumber, isObject, isPhone, isSSR, isString, isStrongPassword, isToday, isURL, isYesterday, last, mapKeys, mapValues, maskString, median, nanoid, omit, pLimit, pSettle, percentage, pick, pluralize, randomInt, range, relativeTime, retry, round, shuffle, sleep, slugify, sortBy, sum, template, throttle, timeout, toCamelCase, toKebabCase, toPascalCase, toSnakeCase, truncate, tryCatch, tryCatchSync, unescapeHtml, unique, uniqueBy, uuid, zip } from './utils/index.js';
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export { Logger, Queue, Result, Stack, TypedStorage } from './chunk-YHQI346M.js';
2
+ import './chunk-RV5MKKBP.js';
3
+ export { addDays, addMonths, average, capitalize, chunk, clamp, compact, daysBetween, debounce, deepClone, deepEqual, deepMerge, diff, difference, escapeHtml, escapeRegExp, first, flatten, flattenObject, formatBytes, formatCurrency, formatDate, formatNumber, groupBy, hasProperty, intersection, isArray, isBoolean, isBrowser, isDefined, isEmail, isEmpty, isFunction, isINN, isNode, isNonNullable, isNumber, isObject, isPhone, isSSR, isString, isStrongPassword, isToday, isURL, isYesterday, last, mapKeys, mapValues, maskString, median, nanoid, omit, pLimit, pSettle, percentage, pick, pluralize, randomInt, range, relativeTime, retry, round, shuffle, sleep, slugify, sortBy, sum, template, throttle, timeout, toCamelCase, toKebabCase, toPascalCase, toSnakeCase, truncate, tryCatch, tryCatchSync, unescapeHtml, unique, uniqueBy, uuid, zip } from './chunk-KA5JX4LA.js';
4
+ //# sourceMappingURL=index.js.map
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ require('../chunk-RNO7ZT65.cjs');
4
+
5
+ //# sourceMappingURL=index.cjs.map
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,114 @@
1
+ type AsyncReturnType<T extends (...args: unknown[]) => Promise<unknown>> = T extends (...args: unknown[]) => Promise<infer R> ? R : never;
2
+
3
+ type Promisable<T> = T | PromiseLike<T>;
4
+
5
+ declare const __brand: unique symbol;
6
+ type Branded<T, Brand extends string> = T & {
7
+ [__brand]: Brand;
8
+ };
9
+
10
+ type EmptyObject = Record<string, never>;
11
+
12
+ type IsEqual<A, B> = (<T>() => T extends A ? 1 : 2) extends (<T>() => T extends B ? 1 : 2) ? true : false;
13
+
14
+ type Nullable<T> = T | null;
15
+
16
+ type Optional<T> = T | undefined;
17
+
18
+ type JsonPrimitive = string | number | boolean | null;
19
+ type JsonArray = JsonValue[];
20
+ type JsonObject = {
21
+ [key: string]: JsonValue;
22
+ };
23
+ type JsonValue = JsonPrimitive | JsonArray | JsonObject;
24
+
25
+ type ConditionalKeys<T, Condition> = {
26
+ [K in keyof T]-?: T[K] extends Condition ? K : never;
27
+ }[keyof T];
28
+
29
+ type ConditionalExcept<T, Condition> = Omit<T, ConditionalKeys<T, Condition>>;
30
+
31
+ type ConditionalPick<T, Condition> = Pick<T, ConditionalKeys<T, Condition>>;
32
+
33
+ type Entries<T> = {
34
+ [K in keyof T]: [K, T[K]];
35
+ }[keyof T][];
36
+
37
+ type OmitByValue<T, V> = Pick<T, {
38
+ [K in keyof T]-?: T[K] extends V ? never : K;
39
+ }[keyof T]>;
40
+
41
+ type PickByValue<T, V> = Pick<T, {
42
+ [K in keyof T]-?: T[K] extends V ? K : never;
43
+ }[keyof T]>;
44
+
45
+ type StringKeyOf<T> = Extract<keyof T, string>;
46
+
47
+ type ValueOf<T> = T[keyof T];
48
+
49
+ type DeepPartial<T> = T extends object ? {
50
+ [P in keyof T]?: DeepPartial<T[P]>;
51
+ } : T;
52
+
53
+ type DeepReadonly<T> = T extends object ? {
54
+ readonly [P in keyof T]: DeepReadonly<T[P]>;
55
+ } : T;
56
+
57
+ type Merge<T, S> = Omit<T, keyof S> & S;
58
+
59
+ type MutableKeys<T> = {
60
+ [K in keyof T]-?: (<U>() => U extends {
61
+ [P in K]: T[P];
62
+ } ? 1 : 2) extends (<U>() => U extends {
63
+ -readonly [P in K]: T[P];
64
+ } ? 1 : 2) ? K : never;
65
+ }[keyof T];
66
+
67
+ type Prettify<T> = {
68
+ [K in keyof T]: T[K];
69
+ } & {};
70
+
71
+ type ReadonlyKeys<T> = {
72
+ [K in keyof T]-?: (<U>() => U extends {
73
+ [P in K]: T[P];
74
+ } ? 1 : 2) extends (<U>() => U extends {
75
+ -readonly [P in K]: T[P];
76
+ } ? 1 : 2) ? never : K;
77
+ }[keyof T];
78
+
79
+ type RequiredDeep<T> = T extends object ? {
80
+ [P in keyof T]-?: RequiredDeep<T[P]>;
81
+ } : T;
82
+
83
+ type SetNonNullable<T, K extends keyof T> = Omit<T, K> & {
84
+ [P in K]: NonNullable<T[P]>;
85
+ };
86
+
87
+ type SetOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
88
+
89
+ type SetRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
90
+
91
+ type Writable<T> = {
92
+ -readonly [P in keyof T]: T[P];
93
+ };
94
+
95
+ type WritableDeep<T> = T extends object ? {
96
+ -readonly [P in keyof T]: WritableDeep<T[P]>;
97
+ } : T;
98
+
99
+ type CamelCaseInner<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${Capitalize<CamelCaseInner<Tail>>}` : S extends `${infer Head}_${infer Tail}` ? `${Head}${Capitalize<CamelCaseInner<Tail>>}` : S;
100
+ type CamelCase<S extends string> = CamelCaseInner<Lowercase<S>>;
101
+
102
+ type Join<T extends readonly string[], D extends string> = T extends readonly [] ? "" : T extends readonly [infer Head extends string] ? Head : T extends readonly [infer Head extends string, ...infer Tail extends string[]] ? `${Head}${D}${Join<Tail, D>}` : string;
103
+
104
+ type KebabCase<S extends string> = S extends `${infer Head}${infer Tail}` ? Tail extends Uncapitalize<Tail> ? `${Lowercase<Head>}${KebabCase<Tail>}` : `${Lowercase<Head>}-${KebabCase<Tail>}` : S;
105
+
106
+ type Split<S extends string, D extends string> = S extends `${infer Head}${D}${infer Tail}` ? [Head, ...Split<Tail, D>] : S extends "" ? [] : [S];
107
+
108
+ type LiteralUnion<LiteralType, BaseType extends string | number | bigint | boolean = string> = LiteralType | (BaseType & Record<never, never>);
109
+
110
+ type TupleToUnion<T extends readonly unknown[]> = T[number];
111
+
112
+ type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
113
+
114
+ export type { AsyncReturnType, Branded, CamelCase, ConditionalExcept, ConditionalKeys, ConditionalPick, DeepPartial, DeepReadonly, EmptyObject, Entries, IsEqual, Join, JsonArray, JsonObject, JsonPrimitive, JsonValue, KebabCase, LiteralUnion, Merge, MutableKeys, Nullable, OmitByValue, Optional, PickByValue, Prettify, Promisable, ReadonlyKeys, RequiredDeep, SetNonNullable, SetOptional, SetRequired, Split, StringKeyOf, TupleToUnion, UnionToIntersection, ValueOf, Writable, WritableDeep };
@@ -0,0 +1,114 @@
1
+ type AsyncReturnType<T extends (...args: unknown[]) => Promise<unknown>> = T extends (...args: unknown[]) => Promise<infer R> ? R : never;
2
+
3
+ type Promisable<T> = T | PromiseLike<T>;
4
+
5
+ declare const __brand: unique symbol;
6
+ type Branded<T, Brand extends string> = T & {
7
+ [__brand]: Brand;
8
+ };
9
+
10
+ type EmptyObject = Record<string, never>;
11
+
12
+ type IsEqual<A, B> = (<T>() => T extends A ? 1 : 2) extends (<T>() => T extends B ? 1 : 2) ? true : false;
13
+
14
+ type Nullable<T> = T | null;
15
+
16
+ type Optional<T> = T | undefined;
17
+
18
+ type JsonPrimitive = string | number | boolean | null;
19
+ type JsonArray = JsonValue[];
20
+ type JsonObject = {
21
+ [key: string]: JsonValue;
22
+ };
23
+ type JsonValue = JsonPrimitive | JsonArray | JsonObject;
24
+
25
+ type ConditionalKeys<T, Condition> = {
26
+ [K in keyof T]-?: T[K] extends Condition ? K : never;
27
+ }[keyof T];
28
+
29
+ type ConditionalExcept<T, Condition> = Omit<T, ConditionalKeys<T, Condition>>;
30
+
31
+ type ConditionalPick<T, Condition> = Pick<T, ConditionalKeys<T, Condition>>;
32
+
33
+ type Entries<T> = {
34
+ [K in keyof T]: [K, T[K]];
35
+ }[keyof T][];
36
+
37
+ type OmitByValue<T, V> = Pick<T, {
38
+ [K in keyof T]-?: T[K] extends V ? never : K;
39
+ }[keyof T]>;
40
+
41
+ type PickByValue<T, V> = Pick<T, {
42
+ [K in keyof T]-?: T[K] extends V ? K : never;
43
+ }[keyof T]>;
44
+
45
+ type StringKeyOf<T> = Extract<keyof T, string>;
46
+
47
+ type ValueOf<T> = T[keyof T];
48
+
49
+ type DeepPartial<T> = T extends object ? {
50
+ [P in keyof T]?: DeepPartial<T[P]>;
51
+ } : T;
52
+
53
+ type DeepReadonly<T> = T extends object ? {
54
+ readonly [P in keyof T]: DeepReadonly<T[P]>;
55
+ } : T;
56
+
57
+ type Merge<T, S> = Omit<T, keyof S> & S;
58
+
59
+ type MutableKeys<T> = {
60
+ [K in keyof T]-?: (<U>() => U extends {
61
+ [P in K]: T[P];
62
+ } ? 1 : 2) extends (<U>() => U extends {
63
+ -readonly [P in K]: T[P];
64
+ } ? 1 : 2) ? K : never;
65
+ }[keyof T];
66
+
67
+ type Prettify<T> = {
68
+ [K in keyof T]: T[K];
69
+ } & {};
70
+
71
+ type ReadonlyKeys<T> = {
72
+ [K in keyof T]-?: (<U>() => U extends {
73
+ [P in K]: T[P];
74
+ } ? 1 : 2) extends (<U>() => U extends {
75
+ -readonly [P in K]: T[P];
76
+ } ? 1 : 2) ? never : K;
77
+ }[keyof T];
78
+
79
+ type RequiredDeep<T> = T extends object ? {
80
+ [P in keyof T]-?: RequiredDeep<T[P]>;
81
+ } : T;
82
+
83
+ type SetNonNullable<T, K extends keyof T> = Omit<T, K> & {
84
+ [P in K]: NonNullable<T[P]>;
85
+ };
86
+
87
+ type SetOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
88
+
89
+ type SetRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
90
+
91
+ type Writable<T> = {
92
+ -readonly [P in keyof T]: T[P];
93
+ };
94
+
95
+ type WritableDeep<T> = T extends object ? {
96
+ -readonly [P in keyof T]: WritableDeep<T[P]>;
97
+ } : T;
98
+
99
+ type CamelCaseInner<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${Capitalize<CamelCaseInner<Tail>>}` : S extends `${infer Head}_${infer Tail}` ? `${Head}${Capitalize<CamelCaseInner<Tail>>}` : S;
100
+ type CamelCase<S extends string> = CamelCaseInner<Lowercase<S>>;
101
+
102
+ type Join<T extends readonly string[], D extends string> = T extends readonly [] ? "" : T extends readonly [infer Head extends string] ? Head : T extends readonly [infer Head extends string, ...infer Tail extends string[]] ? `${Head}${D}${Join<Tail, D>}` : string;
103
+
104
+ type KebabCase<S extends string> = S extends `${infer Head}${infer Tail}` ? Tail extends Uncapitalize<Tail> ? `${Lowercase<Head>}${KebabCase<Tail>}` : `${Lowercase<Head>}-${KebabCase<Tail>}` : S;
105
+
106
+ type Split<S extends string, D extends string> = S extends `${infer Head}${D}${infer Tail}` ? [Head, ...Split<Tail, D>] : S extends "" ? [] : [S];
107
+
108
+ type LiteralUnion<LiteralType, BaseType extends string | number | bigint | boolean = string> = LiteralType | (BaseType & Record<never, never>);
109
+
110
+ type TupleToUnion<T extends readonly unknown[]> = T[number];
111
+
112
+ type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
113
+
114
+ export type { AsyncReturnType, Branded, CamelCase, ConditionalExcept, ConditionalKeys, ConditionalPick, DeepPartial, DeepReadonly, EmptyObject, Entries, IsEqual, Join, JsonArray, JsonObject, JsonPrimitive, JsonValue, KebabCase, LiteralUnion, Merge, MutableKeys, Nullable, OmitByValue, Optional, PickByValue, Prettify, Promisable, ReadonlyKeys, RequiredDeep, SetNonNullable, SetOptional, SetRequired, Split, StringKeyOf, TupleToUnion, UnionToIntersection, ValueOf, Writable, WritableDeep };
@@ -0,0 +1,3 @@
1
+ import '../chunk-RV5MKKBP.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}