@tolki/utils 1.1.0 → 1.2.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/utils.d.ts CHANGED
@@ -1,541 +1,7 @@
1
- import { DataItems } from '../packages/types/src/index.ts';
2
- /**
3
- * Check if a value is an array.
4
- *
5
- * @param value - The value to check
6
- * @returns True if the value is an array
7
- */
8
- export declare function isArray<T>(value: DataItems<T> | T[] | unknown): value is T[];
9
- /**
10
- * Check if a value is an object (not null, not array).
11
- *
12
- * @param value - The value to check
13
- * @returns True if the value is an object
14
- *
15
- * @example
16
- *
17
- * isObject({a: 1, b: 2}); -> true
18
- * isObject([1, 2, 3]); -> false
19
- * isObject(null); -> false
20
- */
21
- export declare function isObject<T, K extends PropertyKey = PropertyKey>(value: DataItems<T, K> | unknown): value is Record<K, T>;
22
- /**
23
- * Check if a value is any object (including arrays, null).
24
- *
25
- * @param value - The value to check
26
- * @returns True if the value is any object
27
- *
28
- * @example
29
- *
30
- * isObjectAny({a: 1, b: 2}); -> true
31
- * isObjectAny([1, 2, 3]); -> true
32
- * isObjectAny(null); -> true
33
- */
34
- export declare function isObjectAny(value: unknown): value is object;
35
- /**
36
- * Check if a value is a truthy object (not null, not undefined, and an object).
37
- *
38
- * @param value - The value to check
39
- * @returns True if the value is a truthy object
40
- *
41
- * @example
42
- *
43
- * isTruthyObject({a: 1, b: 2}); -> true
44
- * isTruthyObject([1, 2, 3]); -> true
45
- * isTruthyObject(null); -> false
46
- * isTruthyObject(undefined); -> false
47
- */
48
- export declare function isTruthyObject(value: unknown): value is object;
49
- /**
50
- * Check if a value is a string.
51
- *
52
- * @param value - The value to check
53
- * @returns True if the value is a string
54
- *
55
- * @example
56
- *
57
- * isString("hello"); -> true
58
- * isString(123); -> false
59
- * isString(null); -> false
60
- */
61
- export declare function isString(value: unknown): value is string;
62
- /**
63
- * Convert a string to lower-case.
64
- */
65
- export declare function toLower(value: string): string;
66
- /**
67
- * Convert a string to upper-case.
68
- */
69
- export declare function toUpper(value: string): string;
70
- /**
71
- * Convert the first character of a string to lower-case.
72
- */
73
- export declare function lowerFirst(value: string): string;
74
- /**
75
- * Convert the first character of a string to upper-case.
76
- */
77
- export declare function upperFirst(value: string): string;
78
- /**
79
- * Check if a value is stringable (can be converted to a string).
80
- *
81
- * @param value - The value to check
82
- * @returns True if the value is stringable
83
- *
84
- * @example
85
- *
86
- * isStringable("hello"); -> true
87
- * isStringable(new Stringable('test')); -> true
88
- * isStringable({ toString: () => "world" }); -> true
89
- * isStringable(123); -> false
90
- * isStringable(null); -> false
91
- */
92
- export declare function isStringable(value: unknown): value is string | {
93
- toString(): string;
94
- };
95
- /**
96
- * Check if a value is an object with a toString method.
97
- *
98
- * @param value - The value to check
99
- * @returns True if the value is an object with a toString method
100
- */
101
- export declare function objectToString(value: unknown): value is {
102
- toString(): string;
103
- };
104
- /**
105
- * Check if a value is a number (and not NaN).
106
- *
107
- * @param value - The value to check
108
- * @returns True if the value is a valid number
109
- *
110
- * @example
111
- *
112
- * isNumber(123); -> true
113
- * isNumber(3.14); -> true
114
- * isNumber(NaN); -> false
115
- * isNumber("123"); -> false
116
- */
117
- export declare function isNumber(value: unknown): value is number;
118
- /**
119
- * Check if a value is an integer.
120
- *
121
- * @param value - The value to check
122
- * @returns True if the value is an integer
123
- */
124
- export declare function isInteger(value: unknown): value is number;
125
- /**
126
- * Check if a value is a float.
127
- *
128
- * @param value - The value to check
129
- * @returns True if the value is a float
130
- */
131
- export declare function isFloat(value: unknown): value is number;
132
- /**
133
- * Check if a value is a positive number.
134
- *
135
- * @param value - The value to check
136
- * @returns True if the value is a positive number
137
- */
138
- export declare function isPositiveNumber(value: unknown): value is number;
139
- /**
140
- * Check if a value is a negative number.
141
- *
142
- * @param value - The value to check
143
- * @returns True if the value is a negative number
144
- */
145
- export declare function isNegativeNumber(value: unknown): value is number;
146
- /**
147
- * Check if a value is a boolean.
148
- *
149
- * @param value - The value to check
150
- * @returns True if the value is a boolean
151
- *
152
- * @example
153
- *
154
- * isBoolean(true); -> true
155
- * isBoolean(false); -> true
156
- * isBoolean(0); -> false
157
- * isBoolean("true"); -> false
158
- */
159
- export declare function isBoolean(value: unknown): value is boolean;
160
- /**
161
- * Check if a value is a function.
162
- *
163
- * @param value - The value to check
164
- * @returns True if the value is a function
165
- *
166
- * @example
167
- *
168
- * isFunction(() => {}); -> true
169
- * isFunction(Math.max); -> true
170
- * isFunction("function"); -> false
171
- * isFunction({}); -> false
172
- */
173
- export declare function isFunction<T extends (...args: unknown[]) => unknown>(value: unknown): value is T;
174
- /**
175
- * Check if a value is undefined.
176
- *
177
- * @param value - The value to check
178
- * @returns True if the value is undefined
179
- *
180
- * @example
181
- *
182
- * isUndefined(undefined); -> true
183
- * isUndefined(null); -> false
184
- * isUndefined(""); -> false
185
- * isUndefined(0); -> false
186
- */
187
- export declare function isUndefined(value: unknown): value is undefined;
188
- /**
189
- * Check if a value is a symbol.
190
- *
191
- * @param value - The value to check
192
- * @returns True if the value is a symbol
193
- *
194
- * @example
195
- *
196
- * isSymbol(Symbol('test')); -> true
197
- * isSymbol(Symbol.iterator); -> true
198
- * isSymbol("symbol"); -> false
199
- * isSymbol({}); -> false
200
- */
201
- export declare function isSymbol(value: unknown): value is symbol;
202
- /**
203
- * Check if a value is null.
204
- *
205
- * @param value - The value to check
206
- * @returns True if the value is null
207
- *
208
- * @example
209
- *
210
- * isNull(null); -> true
211
- * isNull(undefined); -> false
212
- * isNull(""); -> false
213
- * isNull(0); -> false
214
- */
215
- export declare function isNull(value: unknown): value is null;
216
- /**
217
- * Check if a value is a Map.
218
- *
219
- * @param value - The value to check
220
- * @returns True if the value is a Map
221
- *
222
- * @example
223
- *
224
- * isMap(new Map()); -> true
225
- * isMap({}); -> false
226
- * isMap([]); -> false
227
- */
228
- export declare function isMap<K, V>(value: unknown): value is Map<K, V>;
229
- /**
230
- * Check if a value is a Set.
231
- *
232
- * @param value - The value to check
233
- * @returns True if the value is a Set
234
- *
235
- * @example
236
- *
237
- * isSet(new Set()); -> true
238
- * isSet({}); -> false
239
- * isSet([]); -> false
240
- */
241
- export declare function isSet<T>(value: unknown): value is Set<T>;
242
- /**
243
- * Check if a value is iterable, meaning it implements the iterator protocol.
244
- *
245
- * Strings are excluded on purpose because they are treated as scalar values
246
- * rather than collections, which mirrors how PHP treats strings when a
247
- * function accepts an `iterable`.
248
- *
249
- * @param value - The value to check
250
- * @returns True if the value can be iterated over with `for...of`
251
- *
252
- * @example
253
- *
254
- * isIterable([1, 2, 3]); -> true
255
- * isIterable(new Set([1, 2])); -> true
256
- * isIterable(new Map()); -> true
257
- * isIterable("abc"); -> false
258
- * isIterable({ a: 1 }); -> false
259
- */
260
- export declare function isIterable<T>(value: unknown): value is Iterable<T>;
261
- /**
262
- * Check if a value is a WeakMap.
263
- *
264
- * @param value - The value to check
265
- * @returns True if the value is a WeakMap
266
- */
267
- export declare function isWeakMap<K extends object, V>(value: unknown): value is WeakMap<K, V>;
268
- /**
269
- * Check if a value is a WeakSet.
270
- *
271
- * @param value - The value to check
272
- * @returns True if the value is a WeakSet
273
- */
274
- export declare function isWeakSet<T extends object>(value: unknown): value is WeakSet<T>;
275
- /**
276
- * Check if a value is arrayable (has a toArray method).
277
- *
278
- * @param value - The value to check
279
- * @returns True if the value is arrayable
280
- *
281
- * @example
282
- *
283
- * isArrayable({ toArray: () => [1, 2, 3] }); -> true
284
- * isArrayable([1, 2, 3]); -> false
285
- * isArrayable("hello"); -> false
286
- */
287
- export declare function toArrayable<T>(value: unknown): value is {
288
- toArray(): T[];
289
- };
290
- /**
291
- * Check if a value is jsonable (has a toJSON method).
292
- *
293
- * @param value - The value to check
294
- * @returns True if the value is jsonable
295
- *
296
- * @example
297
- *
298
- * isJsonable({ toJSON: () => ({ a: 1 }) }); -> true
299
- * isJsonable("hello"); -> false
300
- */
301
- export declare function toJsonable<T>(value: unknown): value is {
302
- toJson(): T;
303
- } | {
304
- toJSON(): T;
305
- };
306
- /**
307
- * Check if a value is json serializable (has a jsonSerialize method).
308
- *
309
- * @param value - The value to check
310
- * @returns True if the value is json serializable
311
- *
312
- * @example
313
- *
314
- * isJsonSerializable({ jsonSerialize: () => ({ a: 1 }) }); -> true
315
- * isJsonSerializable("hello"); -> false
316
- */
317
- export declare function toJsonSerializable<T>(value: unknown): value is {
318
- jsonSerialize(): T;
319
- };
320
- /**
321
- * Check if a value is falsy (undefined, null, false, 0, "", empty array/object).
322
- *
323
- * @param value - The value to check
324
- * @returns True if the value is falsy
325
- *
326
- * @example
327
- *
328
- * isFalsy(undefined); -> true
329
- * isFalsy(null); -> true
330
- * isFalsy(false); -> true
331
- * isFalsy(0); -> true
332
- * isFalsy(""); -> true
333
- * isFalsy([]); -> true
334
- * isFalsy({}); -> true
335
- * isFalsy("hello"); -> false
336
- * isFalsy([1, 2, 3]); -> false
337
- * isFalsy({ a: 1 }); -> false
338
- */
339
- export declare function isFalsy<TValue = unknown>(value: TValue): boolean;
340
- /**
341
- * Check if a value is truthy (not falsy).
342
- *
343
- * @param value - The value to check
344
- * @returns True if the value is truthy
345
- *
346
- * @example
347
- *
348
- * isTruthy(1); -> true
349
- * isTruthy("hello"); -> true
350
- * isTruthy([1, 2, 3]); -> true
351
- * isTruthy({ a: 1 }); -> true
352
- * isTruthy(0); -> false
353
- * isTruthy(""); -> false
354
- * isTruthy([]); -> false
355
- * isTruthy({}); -> false
356
- */
357
- export declare function isTruthy(value: unknown): boolean;
358
- /**
359
- * Get a more specific type description for debugging purposes.
360
- * Differentiates between null, arrays, and other types.
361
- *
362
- * @param {unknown} v - The value to get the type of.
363
- * @returns {string} A string describing the type.
364
- * @example
365
- * Get specific types
366
- * typeOf(null); -> "null"
367
- * typeOf([]); -> "array"
368
- * typeOf({}); -> "object"
369
- */
370
- export declare function typeOf(v: unknown): string;
371
- /**
372
- * Check if a value is a primitive type (null, boolean, number, string, symbol, undefined).
373
- *
374
- * @param value - The value to check
375
- * @returns True if the value is a primitive
376
- *
377
- * @example
378
- *
379
- * isPrimitive(123); -> true
380
- * isPrimitive("hello"); -> true
381
- * isPrimitive(null); -> true
382
- * isPrimitive({}); -> false
383
- * isPrimitive([]); -> false
384
- */
385
- export declare function isPrimitive(value: unknown): boolean;
386
- /**
387
- * Check if a value is a non-primitive type (object, array, function, etc.).
388
- *
389
- * @param value - The value to check
390
- * @returns True if the value is a non-primitive
391
- *
392
- * @example
393
- *
394
- * isNonPrimitive({}); -> true
395
- * isNonPrimitive([]); -> true
396
- * isNonPrimitive(() => {}); -> true
397
- * isNonPrimitive(123); -> false
398
- * isNonPrimitive("hello"); -> false
399
- */
400
- export declare function isNonPrimitive(value: unknown): boolean;
401
- /**
402
- * Check if a value is a finite number.
403
- *
404
- * @param value - The value to check
405
- * @returns True if the value is a finite number
406
- *
407
- * @example
408
- *
409
- * isFiniteNumber(123); -> true
410
- * isFiniteNumber(3.14); -> true
411
- * isFiniteNumber(Infinity); -> false
412
- * isFiniteNumber(NaN); -> false
413
- * isFiniteNumber("123"); -> false
414
- */
415
- export declare function isFiniteNumber(value: unknown): value is number;
416
- /**
417
- * Convert a value to an array if it's already an array, otherwise return null.
418
- * Used internally for safe array conversion without coercion.
419
- *
420
- * @param {unknown} value - The value to convert.
421
- * @returns {unknown[] | null} The array if value is an array, null otherwise.
422
- * @example
423
- * Convert to array
424
- * toArray([1, 2, 3]); -> [1, 2, 3]
425
- * toArray("hello"); -> null
426
- * toArray({}); -> null
427
- */
428
- export declare function castableToArray<T>(value: unknown): T[] | null;
429
- /**
430
- * Helper function to safely compare two unknown values for sorting.
431
- * Provides stable comparison for objects using JSON serialization.
432
- *
433
- * @param a - First value to compare
434
- * @param b - Second value to compare
435
- * @returns -1 if a < b, 1 if a > b, 0 if equal
436
- *
437
- * @example
438
- * compareValues(1, 2); -> -1
439
- * compareValues('b', 'a'); -> 1
440
- * compareValues({x: 1}, {x: 1}); -> 0
441
- */
442
- export declare function compareValues(a: unknown, b: unknown): number;
443
- /**
444
- * Helper function to resolve a default value (either direct value or lazy function).
445
- *
446
- * @param defaultValue - The default value or lazy function
447
- * @returns The resolved default value
448
- *
449
- * @example
450
- * resolveDefault('hello'); -> 'hello'
451
- * resolveDefault(() => 'world'); -> 'world'
452
- * resolveDefault(undefined); -> null
453
- */
454
- export declare function resolveDefault<D>(defaultValue?: D | (() => D)): D | null;
455
- /**
456
- * Helper function to normalize data to an array format.
457
- * Handles arrays only now.
458
- *
459
- * @param data - The data to normalize (array or other)
460
- * @returns An array representation of the data, or null if not accessible
461
- *
462
- * @example
463
- * normalizeToArray([1, 2, 3]); -> [1, 2, 3]
464
- * normalizeToArray('hello'); -> null
465
- */
466
- export declare function normalizeToArray<T>(data: ReadonlyArray<T> | unknown): T[] | null;
467
- /**
468
- * Helper function to check if data is accessible (array only).
469
- *
470
- * @param data - The data to check
471
- * @returns True if data is an array
472
- *
473
- * @example
474
- * isAccessibleData([1, 2, 3]); -> true
475
- * isAccessibleData('hello'); -> false
476
- */
477
- export declare function isAccessibleData(data: unknown): boolean;
478
- /**
479
- * Helper function to get normalized values from data.
480
- * Returns array values or empty array if data is not accessible.
481
- *
482
- * @param data - The data to get values from
483
- * @returns Array of values or empty array
484
- *
485
- * @example
486
- * getAccessibleValues([1, 2, 3]); -> [1, 2, 3]
487
- * getAccessibleValues('hello'); -> []
488
- */
489
- export declare function getAccessibleValues<T>(data: ReadonlyArray<T> | unknown): T[];
490
- /**
491
- * PHP-like loose equality comparison.
492
- * Mimics PHP's == operator behavior where null, false, 0, '', and [] are considered loosely equal.
493
- * Also handles deep comparison for arrays and objects.
494
- *
495
- * @param a - First value to compare
496
- * @param b - Second value to compare
497
- * @returns True if values are loosely equal in PHP-like manner
498
- *
499
- * @example
500
- *
501
- * looseEqual(null, false); -> true
502
- * looseEqual(null, 0); -> true
503
- * looseEqual(null, ''); -> true
504
- * looseEqual(0, false); -> true
505
- * looseEqual(1, '1'); -> true
506
- * looseEqual(['a'], ['a']); -> true
507
- */
508
- export declare function looseEqual(a: unknown, b: unknown): boolean;
509
- /**
510
- * PHP-like strict equality comparison (=== operator).
511
- * Performs strict type checking for primitives but value-based comparison for arrays and objects.
512
- * NOTE: For class instances (objects with constructors other than Object), uses reference equality.
513
- *
514
- * @param a - First value to compare
515
- * @param b - Second value to compare
516
- * @returns True if values are strictly equal in PHP-like manner
517
- *
518
- * @example
519
- *
520
- * strictEqual(1, 1); -> true
521
- * strictEqual(1, '1'); -> false (different types)
522
- * strictEqual(['a'], ['a']); -> true (same array content)
523
- * strictEqual({a: 1}, {a: 1}); -> true (same object content)
524
- */
525
- export declare function strictEqual(a: unknown, b: unknown): boolean;
526
- /**
527
- * Figures out if the entry key should be a number or a string.
528
- *
529
- * @param value - The entry key value (number, string, or symbol)
530
- * @returns The entry key as a number if it can be converted, otherwise returns the original value
531
- */
532
- export declare function entriesKeyValue<T extends PropertyKey>(value: T): T extends `${number}` ? number : T;
533
- /**
534
- * Check if a key is unsafe for property assignment (prototype pollution).
535
- * Returns true for `__proto__`, `constructor`, and `prototype`.
536
- *
537
- * @param key - The key to check
538
- * @returns True if the key could cause prototype pollution
539
- */
540
- export declare function isUnsafeKey(key: string): boolean;
1
+ export * from './cast';
2
+ export * from './equality';
3
+ export * from './guards';
4
+ export * from './keys';
5
+ export * from './reflect';
6
+ export * from './string';
541
7
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,OAAO,GAAG,KAAK,IAAI,CAAC,EAAE,CAE5E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,WAAW,GAAG,WAAW,EAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EA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