deverything 3.3.1 → 4.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.
- package/README.md +0 -1
- package/dist/index.d.mts +861 -0
- package/dist/index.d.ts +67 -85
- package/dist/index.global.js +2 -197
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -192
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -141,17 +141,20 @@ type Serialized<T> = T extends Date ? string : T extends Array<infer R> ? Array<
|
|
|
141
141
|
} : T;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
145
|
-
* @
|
|
146
|
-
*
|
|
144
|
+
* Buckets dates into groups based on a date series
|
|
145
|
+
* @param dateSeries Array of dates that define the buckets, must be sorted in ascending order
|
|
146
|
+
* @param dates Array of dates to be bucketed, must be sorted in ascending order
|
|
147
|
+
* @param unit The time unit to use for bucketing ('day', 'hour', 'minute', 'second')
|
|
148
|
+
* @returns Record mapping each bucket date to an array of dates that fall within that bucket
|
|
147
149
|
*/
|
|
148
|
-
declare const
|
|
150
|
+
declare const bucketSortedDates: (dateSeries: ISODate[], dates: ISODate[], unit: "day" | "hour" | "minute" | "second") => Record<ISODate, ISODate[]>;
|
|
149
151
|
|
|
150
152
|
/**
|
|
151
153
|
*
|
|
152
|
-
* @
|
|
154
|
+
* @description Generate a series of dates between the start and end dates
|
|
155
|
+
* NOTE: it does NOT include the end date
|
|
153
156
|
*/
|
|
154
|
-
declare const
|
|
157
|
+
declare const getDateRangeSeries: (dateRange: DateRange, unit: "day" | "hour" | "minute" | "second" | "calendarMonth") => ISODate[];
|
|
155
158
|
|
|
156
159
|
/**
|
|
157
160
|
* @description Returns the smallest and biggest dates from an array of dates in DateRange format
|
|
@@ -159,7 +162,7 @@ declare const getDateSeries: (startDate: Date, endDate: Date, unit: "days" | "ho
|
|
|
159
162
|
* @returns DateRange object with startDate (smallest) and endDate (biggest)
|
|
160
163
|
* @throws Error if the array is empty or contains invalid dates
|
|
161
164
|
*/
|
|
162
|
-
declare const getDateSeriesRange: (dateSeries: DateSeries
|
|
165
|
+
declare const getDateSeriesRange: (dateSeries: DateSeries) => DateRange;
|
|
163
166
|
|
|
164
167
|
declare const isOver18: (birthDate: DateLike) => boolean;
|
|
165
168
|
|
|
@@ -203,8 +206,8 @@ declare const formatCookies: (object: PlainObject) => string;
|
|
|
203
206
|
/**
|
|
204
207
|
*
|
|
205
208
|
* @example formatIndexProgress(-1, 10) => [1/10] capped
|
|
206
|
-
* @example
|
|
207
|
-
* @example
|
|
209
|
+
* @example formatIndexProgress(1, 10) => [2/10]
|
|
210
|
+
* @example formatIndexProgress(11, 10) => [10/10] capped
|
|
208
211
|
*/
|
|
209
212
|
declare const formatIndexProgress: (index: number, total: number) => string;
|
|
210
213
|
|
|
@@ -216,9 +219,9 @@ declare const formatIndexProgress: (index: number, total: number) => string;
|
|
|
216
219
|
* @example formatNumber(0.12345, { percentage: true, maxDigits: 2 }) // '12.35%' (rounding)
|
|
217
220
|
*/
|
|
218
221
|
declare const formatNumber: (value: number, { compact, maxDigits, percentage, }?: {
|
|
219
|
-
compact?: boolean
|
|
220
|
-
maxDigits?: number
|
|
221
|
-
percentage?: boolean
|
|
222
|
+
compact?: boolean;
|
|
223
|
+
maxDigits?: number;
|
|
224
|
+
percentage?: boolean;
|
|
222
225
|
}) => string;
|
|
223
226
|
|
|
224
227
|
/**
|
|
@@ -227,15 +230,7 @@ declare const formatNumber: (value: number, { compact, maxDigits, percentage, }?
|
|
|
227
230
|
* @example formatPercentage(0, { digits: 2 }) => 0.00%
|
|
228
231
|
*/
|
|
229
232
|
declare const formatPercentage: (value: number, { digits, }?: {
|
|
230
|
-
digits?: number
|
|
231
|
-
}) => string;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* @deprecated Use `formatIndexProgress` instead.
|
|
235
|
-
*/
|
|
236
|
-
declare const formatProgress: ({ index, total, }: {
|
|
237
|
-
index: number;
|
|
238
|
-
total: number;
|
|
233
|
+
digits?: number;
|
|
239
234
|
}) => string;
|
|
240
235
|
|
|
241
236
|
declare const stringToCSSUnicode: (text: string) => string;
|
|
@@ -272,7 +267,7 @@ declare const chunkedAll: <T>(array: T[], chunkSize: number, fn: (chunk: T[]) =>
|
|
|
272
267
|
* @param options.minChunkTimeMs - Minimum time to process each chunk
|
|
273
268
|
*/
|
|
274
269
|
declare const chunkedAsync: <T>(array: T[], chunkSize: number, fn: (chunk: T[], chunkIndex: number, chunks: T[][]) => Promise<any>, { minChunkTimeMs, }?: {
|
|
275
|
-
minChunkTimeMs?: number
|
|
270
|
+
minChunkTimeMs?: number;
|
|
276
271
|
}) => Promise<any[]>;
|
|
277
272
|
|
|
278
273
|
/**
|
|
@@ -287,11 +282,11 @@ declare const chunkedAsync: <T>(array: T[], chunkSize: number, fn: (chunk: T[],
|
|
|
287
282
|
* @param options.sleepTimeMs - Time to sleep between each chunk
|
|
288
283
|
*/
|
|
289
284
|
declare const chunkedDynamic: <T>(array: T[], initialChunkSize: number, fn: (chunk: T[], currentChunkIndex: number) => Promise<any>, { idealChunkDuration, maxChunkSize, minChunkDuration, minChunkSize, sleepTimeMs, }?: {
|
|
290
|
-
idealChunkDuration?: number
|
|
291
|
-
maxChunkSize?: number
|
|
292
|
-
minChunkDuration?: number
|
|
293
|
-
minChunkSize?: number
|
|
294
|
-
sleepTimeMs?: number
|
|
285
|
+
idealChunkDuration?: number;
|
|
286
|
+
maxChunkSize?: number;
|
|
287
|
+
minChunkDuration?: number;
|
|
288
|
+
minChunkSize?: number;
|
|
289
|
+
sleepTimeMs?: number;
|
|
295
290
|
}) => Promise<any[]>;
|
|
296
291
|
|
|
297
292
|
declare const clamp: ({ number, min, max, }: {
|
|
@@ -311,7 +306,7 @@ declare const cyclicalItem: <T>(array: T[], index: number) => T;
|
|
|
311
306
|
* Print or log helper that does not break on circular references, and expands nested objects.
|
|
312
307
|
*/
|
|
313
308
|
declare const dir: (arg: any, { maxDepth }?: {
|
|
314
|
-
maxDepth?: number
|
|
309
|
+
maxDepth?: number;
|
|
315
310
|
}) => void;
|
|
316
311
|
|
|
317
312
|
declare const enumKeys: <T extends object>(arg: T) => ObjectKeys<T>;
|
|
@@ -326,9 +321,9 @@ declare const filterAlphanumeric: (string: string) => string;
|
|
|
326
321
|
|
|
327
322
|
declare const first: <T>(arr: T[]) => T;
|
|
328
323
|
|
|
329
|
-
declare const firstKey: <T extends PlainObject
|
|
324
|
+
declare const firstKey: <T extends PlainObject>(arg: T) => ObjectKey<T>;
|
|
330
325
|
|
|
331
|
-
declare const firstValue: <T extends PlainObject
|
|
326
|
+
declare const firstValue: <T extends PlainObject>(arg: T) => ObjectValue<T>;
|
|
332
327
|
|
|
333
328
|
/**
|
|
334
329
|
* Get a client cookie by name, works only in the browser
|
|
@@ -375,7 +370,7 @@ declare const groupByKey: <T, K extends keyof T>(items: T[], key: K) => Record<k
|
|
|
375
370
|
|
|
376
371
|
declare const incrementalId: () => number;
|
|
377
372
|
|
|
378
|
-
declare const keysLength: <T extends PlainObject
|
|
373
|
+
declare const keysLength: <T extends PlainObject>(obj: T) => number;
|
|
379
374
|
|
|
380
375
|
declare const last: <T>(arr: T[]) => T;
|
|
381
376
|
|
|
@@ -392,13 +387,14 @@ declare const lastIndex: (array: any[]) => number;
|
|
|
392
387
|
* itemsById[1]; // { id: 1, name: "Alice" }
|
|
393
388
|
* itemsById[2]; // { id: 2, name: "Bob" }
|
|
394
389
|
*/
|
|
395
|
-
declare const mapByKey: <T extends PlainObject
|
|
390
|
+
declare const mapByKey: <T extends PlainObject>(items: T[], key: keyof T) => Record<Exclude<T[keyof T], null | undefined>, // any value of T, excluding null and undefined
|
|
391
|
+
T>;
|
|
396
392
|
|
|
397
393
|
/**
|
|
398
394
|
* @description Simple merge function that merges two objects, arrays get overwritten, no options
|
|
399
395
|
*
|
|
400
396
|
*/
|
|
401
|
-
declare const merge: (target: PlainObject, source: PlainObject) => PlainObject
|
|
397
|
+
declare const merge: (target: PlainObject, source: PlainObject) => PlainObject;
|
|
402
398
|
|
|
403
399
|
/**
|
|
404
400
|
* @description Merge two arrays, unique values, no options
|
|
@@ -416,9 +412,9 @@ declare const normalizeNumber: ({ value, max, min, }: {
|
|
|
416
412
|
min: number;
|
|
417
413
|
}) => number;
|
|
418
414
|
|
|
419
|
-
declare const objectDiff: (leftObject: PlainObject, rightObject: PlainObject) => PlainObject
|
|
415
|
+
declare const objectDiff: (leftObject: PlainObject, rightObject: PlainObject) => PlainObject;
|
|
420
416
|
|
|
421
|
-
declare const omit: <T extends PlainObject
|
|
417
|
+
declare const omit: <T extends PlainObject>(obj: T, keys: (keyof T)[]) => Partial<T>;
|
|
422
418
|
|
|
423
419
|
/**
|
|
424
420
|
*
|
|
@@ -437,7 +433,7 @@ declare const parseDate: (arg?: Maybe<DateLike>, options?: {
|
|
|
437
433
|
* const obj = { a: 1, b: 2, c: 3 };
|
|
438
434
|
* pickObjectKeys(obj, ["a", "c"]); // { a: 1, c: 3 }
|
|
439
435
|
*/
|
|
440
|
-
declare const pickObjectKeys: <T extends PlainObject
|
|
436
|
+
declare const pickObjectKeys: <T extends PlainObject>(obj: T, keys: ObjectKeys<T>) => Partial<T>;
|
|
441
437
|
|
|
442
438
|
/**
|
|
443
439
|
*
|
|
@@ -446,9 +442,9 @@ declare const pickObjectKeys: <T extends PlainObject<any>>(obj: T, keys: ObjectK
|
|
|
446
442
|
* const obj = { a: 1, b: 2, c: 3 };
|
|
447
443
|
* pickObjectValues(obj, [1, 3]); // { a: 1, c: 3 }
|
|
448
444
|
*/
|
|
449
|
-
declare const pickObjectValues: <T extends PlainObject
|
|
445
|
+
declare const pickObjectValues: <T extends PlainObject>(obj: T, values: ObjectValues<T>) => Partial<T>;
|
|
450
446
|
|
|
451
|
-
declare const pluck: <T extends PlainObject
|
|
447
|
+
declare const pluck: <T extends PlainObject>(items: T[], key: keyof T) => Exclude<T[keyof T], null | undefined>[];
|
|
452
448
|
|
|
453
449
|
declare const promiseWithTimeout: <T>(promise: () => Promise<T>, timeoutMs: number, error?: Error) => Promise<T>;
|
|
454
450
|
|
|
@@ -465,7 +461,7 @@ declare const scrambleText: (str: string) => string;
|
|
|
465
461
|
* @example
|
|
466
462
|
* serialize({ b: 1, a: 2 }) // '{"a":1,"b":2}'
|
|
467
463
|
*/
|
|
468
|
-
declare const serialize: <T extends PlainObject
|
|
464
|
+
declare const serialize: <T extends PlainObject>(obj: T) => string;
|
|
469
465
|
|
|
470
466
|
type AsyncFunction<T = any> = () => Promise<T>;
|
|
471
467
|
type SeriesResult<T extends readonly AsyncFunction[]> = {
|
|
@@ -482,7 +478,7 @@ type SeriesResult<T extends readonly AsyncFunction[]> = {
|
|
|
482
478
|
* async () => 4,
|
|
483
479
|
* ]); => [1, 2, 3, 4]
|
|
484
480
|
*/
|
|
485
|
-
declare const seriesAsync: <T extends readonly AsyncFunction
|
|
481
|
+
declare const seriesAsync: <T extends readonly AsyncFunction[]>(series: readonly [...T]) => Promise<SeriesResult<T>>;
|
|
486
482
|
|
|
487
483
|
/**
|
|
488
484
|
* Sets a value in an object using a dot-separated path.
|
|
@@ -502,17 +498,10 @@ declare const sleep: (timeMs: number) => Promise<void>;
|
|
|
502
498
|
declare const stringify: (arg?: any) => string;
|
|
503
499
|
|
|
504
500
|
declare const toggleArrayValue: <T>(array: T[], value: T) => T[];
|
|
505
|
-
/**
|
|
506
|
-
* @deprecated Use toggleArrayValue instead
|
|
507
|
-
* @param {T[]} array
|
|
508
|
-
* @param {T} value
|
|
509
|
-
* @returns {T[]}
|
|
510
|
-
*/
|
|
511
|
-
declare const toggleArray: <T>(array: T[], value: T) => T[];
|
|
512
501
|
|
|
513
502
|
declare const truncate: (arg: string, limit: number, { ellipsis, position, }?: {
|
|
514
|
-
ellipsis?: string
|
|
515
|
-
position?: "start" | "middle" | "end"
|
|
503
|
+
ellipsis?: string;
|
|
504
|
+
position?: "start" | "middle" | "end";
|
|
516
505
|
}) => string;
|
|
517
506
|
|
|
518
507
|
declare const uniqueValues: <T>(arr: T[]) => T[];
|
|
@@ -591,13 +580,13 @@ declare const randomAddress: () => RandomAddress;
|
|
|
591
580
|
* randomAlphaNumericCode(); => "A2G4G6"
|
|
592
581
|
*/
|
|
593
582
|
declare const randomAlphaNumericCode: ({ length, }?: {
|
|
594
|
-
length?: number
|
|
583
|
+
length?: number;
|
|
595
584
|
}) => string;
|
|
596
585
|
|
|
597
586
|
declare const randomArray: () => (string | number | boolean | symbol | Date | BigInt)[];
|
|
598
587
|
|
|
599
588
|
declare const randomArrayItem: <T>(array: T[], { weights }?: {
|
|
600
|
-
weights?: number[]
|
|
589
|
+
weights?: number[];
|
|
601
590
|
}) => T;
|
|
602
591
|
|
|
603
592
|
type BankAccount = {
|
|
@@ -645,21 +634,21 @@ declare const randomDateRange: () => {
|
|
|
645
634
|
};
|
|
646
635
|
|
|
647
636
|
declare const randomEmail: ({ handle, handleSuffix, }?: {
|
|
648
|
-
handle?: string
|
|
649
|
-
handleSuffix?: string
|
|
637
|
+
handle?: string;
|
|
638
|
+
handleSuffix?: string;
|
|
650
639
|
}) => string;
|
|
651
640
|
|
|
652
641
|
declare const randomEmoji: () => string;
|
|
653
642
|
|
|
654
643
|
declare const randomEmptyValue: () => number | null | undefined;
|
|
655
644
|
|
|
656
|
-
declare const randomEnumKey: <T extends object>(arg: T) =>
|
|
645
|
+
declare const randomEnumKey: <T extends object>(arg: T) => ObjectKey<T>;
|
|
657
646
|
|
|
658
647
|
declare const randomEnumValue: <T extends object>(arg: T) => ObjectValue<T>;
|
|
659
648
|
|
|
660
649
|
declare const randomFile: ({ name, extension, }?: {
|
|
661
|
-
name?: string
|
|
662
|
-
extension?: string
|
|
650
|
+
name?: string;
|
|
651
|
+
extension?: string;
|
|
663
652
|
}) => File | undefined;
|
|
664
653
|
|
|
665
654
|
declare const JS_MAX_DIGITS = 16;
|
|
@@ -671,7 +660,7 @@ declare const randomFloat: (min?: number, max?: number, decimals?: number) => nu
|
|
|
671
660
|
* @example "john.doe15"
|
|
672
661
|
*/
|
|
673
662
|
declare const randomHandle: ({ suffix }?: {
|
|
674
|
-
suffix?: string
|
|
663
|
+
suffix?: string;
|
|
675
664
|
}) => string;
|
|
676
665
|
|
|
677
666
|
declare const randomHexColor: () => string;
|
|
@@ -683,17 +672,17 @@ declare const randomHtmlColorName: () => string;
|
|
|
683
672
|
declare const randomIBAN: () => string;
|
|
684
673
|
|
|
685
674
|
declare const randomInt: ({ min, max, }?: {
|
|
686
|
-
min?: number
|
|
687
|
-
max?: number
|
|
675
|
+
min?: number;
|
|
676
|
+
max?: number;
|
|
688
677
|
}) => number;
|
|
689
678
|
declare const randomBigInt: () => BigInt;
|
|
690
679
|
declare const randomPositiveInt: ({ min, max, }?: {
|
|
691
|
-
min?: number
|
|
692
|
-
max?: number
|
|
680
|
+
min?: number;
|
|
681
|
+
max?: number;
|
|
693
682
|
}) => number;
|
|
694
683
|
declare const randomNegativeInt: ({ min, max, }?: {
|
|
695
|
-
min?: number
|
|
696
|
-
max?: number
|
|
684
|
+
min?: number;
|
|
685
|
+
max?: number;
|
|
697
686
|
}) => number;
|
|
698
687
|
declare const randomMaxSafeInt: () => number;
|
|
699
688
|
declare const randomMaxInt: () => number;
|
|
@@ -717,13 +706,13 @@ declare const randomFullName: () => string;
|
|
|
717
706
|
* randomNumericCode({ length: 4 }); => "1234"
|
|
718
707
|
*/
|
|
719
708
|
declare const randomNumericCode: ({ length }?: {
|
|
720
|
-
length?: number
|
|
709
|
+
length?: number;
|
|
721
710
|
}) => string;
|
|
722
711
|
|
|
723
712
|
declare const randomObject: ({ maxDepth, circular, }?: {
|
|
724
|
-
maxDepth?: number
|
|
725
|
-
circular?: boolean
|
|
726
|
-
}) => PlainObject
|
|
713
|
+
maxDepth?: number;
|
|
714
|
+
circular?: boolean;
|
|
715
|
+
}) => PlainObject;
|
|
727
716
|
|
|
728
717
|
/**
|
|
729
718
|
* Generates a random paragraph of text.
|
|
@@ -732,24 +721,24 @@ declare const randomObject: ({ maxDepth, circular, }?: {
|
|
|
732
721
|
* @returns A random paragraph of text.
|
|
733
722
|
*/
|
|
734
723
|
declare const randomParagraph: ({ maxCharacters, minWords, maxWords, }?: {
|
|
735
|
-
maxCharacters?: number
|
|
736
|
-
minWords?: number
|
|
737
|
-
maxWords?: number
|
|
724
|
+
maxCharacters?: number;
|
|
725
|
+
minWords?: number;
|
|
726
|
+
maxWords?: number;
|
|
738
727
|
}) => string;
|
|
739
728
|
|
|
740
729
|
declare const randomPassword: ({ minChars, maxChars, }?: {
|
|
741
|
-
minChars?: number
|
|
742
|
-
maxChars?: number
|
|
730
|
+
minChars?: number;
|
|
731
|
+
maxChars?: number;
|
|
743
732
|
}) => string;
|
|
744
733
|
|
|
745
734
|
declare const randomPath: ({ depth, }?: {
|
|
746
|
-
depth?: number
|
|
735
|
+
depth?: number;
|
|
747
736
|
}) => string;
|
|
748
737
|
|
|
749
738
|
declare const randomPhoneNumber: () => string;
|
|
750
739
|
|
|
751
740
|
declare const randomString: ({ length, }?: {
|
|
752
|
-
length?: number
|
|
741
|
+
length?: number;
|
|
753
742
|
}) => string;
|
|
754
743
|
|
|
755
744
|
declare const randomSymbol: () => symbol;
|
|
@@ -801,7 +790,8 @@ declare const isFutureDate: (arg: DateLike) => boolean;
|
|
|
801
790
|
|
|
802
791
|
declare const isJsDate: (arg: Date) => arg is Date;
|
|
803
792
|
|
|
804
|
-
declare const isKey: <T extends PlainObject
|
|
793
|
+
declare const isKey: <T extends PlainObject>(key: Key, // cannot use PlainKey here because it does not include symbol (keyof T does)
|
|
794
|
+
obj: T) => key is keyof T;
|
|
805
795
|
|
|
806
796
|
declare const isLastIndex: (index: number, array: any[]) => boolean;
|
|
807
797
|
|
|
@@ -810,15 +800,7 @@ declare const isNotEmptyString: (arg: any) => boolean;
|
|
|
810
800
|
declare const isInt: (arg: any) => boolean;
|
|
811
801
|
declare const isEven: (arg: any) => boolean;
|
|
812
802
|
declare const isOdd: (arg: any) => boolean;
|
|
813
|
-
/**
|
|
814
|
-
* @deprecated use isPositiveInt instead
|
|
815
|
-
*/
|
|
816
|
-
declare const isPositive: (arg: any) => boolean;
|
|
817
803
|
declare const isPositiveInt: (arg: any) => boolean;
|
|
818
|
-
/**
|
|
819
|
-
* @deprecated use isNegativeInt instead
|
|
820
|
-
*/
|
|
821
|
-
declare const isNegative: (arg: any) => boolean;
|
|
822
804
|
declare const isNegativeInt: (arg: any) => boolean;
|
|
823
805
|
declare const isNumber: (arg: any) => arg is number;
|
|
824
806
|
declare const isBigInt: (arg: any) => arg is BigInt;
|
|
@@ -842,7 +824,7 @@ declare const isObject: <T>(arg?: any) => arg is PlainObject<T>;
|
|
|
842
824
|
|
|
843
825
|
declare const isPastDate: (arg: DateLike) => boolean;
|
|
844
826
|
|
|
845
|
-
declare const isPromise: (arg: any) =>
|
|
827
|
+
declare const isPromise: (arg: any) => arg is Promise<any>;
|
|
846
828
|
|
|
847
829
|
declare const isPWA: () => boolean;
|
|
848
830
|
|
|
@@ -876,4 +858,4 @@ declare const isUUID: (arg: string) => boolean;
|
|
|
876
858
|
|
|
877
859
|
declare const isValue: <T>(arg?: Maybe<T>) => arg is T;
|
|
878
860
|
|
|
879
|
-
export { BoolMap, Coords, DateLike, DateRange, DateSeries, Datey, Defined, Dimensions, HashMap, ISODate, ISODay, ISOMonth, ISOYear, JS_MAX_DIGITS, Key, Matrix, Maybe, MaybePromise, MaybePromiseOrValue, MaybePromiseOrValueArray, NonUndefined, NumberMap, ObjectEntries, ObjectEntry, ObjectKey, ObjectKeys, ObjectValue, ObjectValues, PickDefined, PickRequired, PlainKey, PlainObject, Point, PrismaSelect, Serialized, StringMap, Timezone, TrueMap, VoidFn, array, arrayDiff, arrayIntersection, average, capitalize, chunkArray, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatIndexProgress, formatNumber, formatPercentage,
|
|
861
|
+
export { type BoolMap, type Coords, type DateLike, type DateRange, type DateSeries, type Datey, type Defined, type Dimensions, type HashMap, type ISODate, type ISODay, type ISOMonth, type ISOYear, JS_MAX_DIGITS, type Key, type Matrix, type Maybe, type MaybePromise, type MaybePromiseOrValue, type MaybePromiseOrValueArray, type NonUndefined, type NumberMap, type ObjectEntries, type ObjectEntry, type ObjectKey, type ObjectKeys, type ObjectValue, type ObjectValues, type PickDefined, type PickRequired, type PlainKey, type PlainObject, type Point, type PrismaSelect, type Serialized, type StringMap, type Timezone, type TrueMap, type VoidFn, array, arrayDiff, arrayIntersection, average, bucketSortedDates, capitalize, chunkArray, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatIndexProgress, formatNumber, formatPercentage, formatTrpcInputQueryString, getCookieByName, getDateRangeSeries, getDateSeriesRange, getKeys, getUrlSearchParam, getUrlSearchParams, groupByKey, incrementalId, isArray, isArrayIncluded, isBetween, isBigInt, isBigIntString, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, objectDiff, omit, parseDate, percentageChange, pickObjectKeys, pickObjectValues, pluck, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArray, randomArrayItem, randomBankAccount, randomBigInt, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEmptyValue, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomObject, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
|