@isdk/util 0.3.6 → 0.3.7

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 (60) hide show
  1. package/dist/index.d.mts +104 -23
  2. package/dist/index.d.ts +104 -23
  3. package/dist/index.js +1 -1
  4. package/dist/index.mjs +1 -1
  5. package/docs/classes/BinarySemaphore.md +25 -25
  6. package/docs/classes/ConfigFile.md +6 -6
  7. package/docs/classes/Deque.md +13 -13
  8. package/docs/classes/IntSet.md +12 -12
  9. package/docs/classes/Semaphore.md +26 -26
  10. package/docs/classes/SignalGate.md +9 -9
  11. package/docs/functions/RateLimit.md +1 -1
  12. package/docs/functions/arrayHasAll.md +1 -1
  13. package/docs/functions/extNameLevel.md +1 -1
  14. package/docs/functions/extractCodeBlock.md +91 -0
  15. package/docs/functions/filenameReservedRegex.md +1 -1
  16. package/docs/functions/findPort.md +1 -1
  17. package/docs/functions/getMultiLevelExtname.md +1 -1
  18. package/docs/functions/glob.md +1 -1
  19. package/docs/functions/isStringIn.md +1 -1
  20. package/docs/functions/isValidFilename.md +1 -1
  21. package/docs/functions/isValidFilepath.md +1 -1
  22. package/docs/functions/normalizeIncludeFiles.md +1 -1
  23. package/docs/functions/omitDeepBy.md +1 -1
  24. package/docs/functions/omitEmptyDeep.md +1 -1
  25. package/docs/functions/parseFrontMatter.md +1 -1
  26. package/docs/functions/parseYaml.md +1 -1
  27. package/docs/functions/reControlCharsRegex.md +1 -1
  28. package/docs/functions/registerYamlTag.md +1 -1
  29. package/docs/functions/removeLeadingEmptyLines.md +1 -1
  30. package/docs/functions/sanitizeFilename.md +1 -1
  31. package/docs/functions/sanitizeFilepath.md +1 -1
  32. package/docs/functions/sleep.md +1 -1
  33. package/docs/functions/stringifyYaml.md +1 -1
  34. package/docs/functions/toCamelCase.md +1 -1
  35. package/docs/functions/toCapitalCase.md +1 -1
  36. package/docs/functions/toPascalCase.md +1 -1
  37. package/docs/functions/traverseFolder.md +1 -1
  38. package/docs/functions/traverseFolderSync.md +1 -1
  39. package/docs/functions/yieldExec.md +1 -1
  40. package/docs/globals.md +3 -0
  41. package/docs/interfaces/BinarySemaphoreAcquireOptions.md +2 -2
  42. package/docs/interfaces/BinarySemaphoreOptions.md +5 -5
  43. package/docs/interfaces/BinarySemaphoreReleaseOptions.md +2 -2
  44. package/docs/interfaces/BinarySemaphoreReleaserFunc.md +3 -3
  45. package/docs/interfaces/CodeString.md +1712 -0
  46. package/docs/interfaces/ExtractCodeBlockOptions.md +43 -0
  47. package/docs/interfaces/IncludeFiles.md +3 -3
  48. package/docs/interfaces/LoadConfigFileOptions.md +3 -3
  49. package/docs/interfaces/SanitizeFilenameOptions.md +3 -3
  50. package/docs/interfaces/SemaphoreOptions.md +7 -7
  51. package/docs/interfaces/SemaphoreTaskItem.md +5 -5
  52. package/docs/type-aliases/SemaphoreIsReadyFuncType.md +1 -1
  53. package/docs/type-aliases/StringifyFunc.md +1 -1
  54. package/docs/type-aliases/TraverseFolderHandler.md +1 -1
  55. package/docs/type-aliases/TraverseFolderSyncHandler.md +1 -1
  56. package/docs/variables/DefaultAllTextFiles.md +1 -1
  57. package/docs/variables/DefaultAsyncSemaphoreCapacity.md +1 -1
  58. package/docs/variables/FilenameReservedRegex.md +1 -1
  59. package/docs/variables/WindowsReservedNameRegex.md +1 -1
  60. package/package.json +2 -1
@@ -0,0 +1,1712 @@
1
+ [**@isdk/util**](../README.md)
2
+
3
+ ***
4
+
5
+ [@isdk/util](../globals.md) / CodeString
6
+
7
+ # Interface: CodeString
8
+
9
+ Defined in: [src/extract-code-block.ts:9](https://github.com/isdk/util.js/blob/20d48780d60e0a0a6f6a696a3efdfa46d4cb3b1e/src/extract-code-block.ts#L9)
10
+
11
+ An extension of the built-in `String` type that carries metadata about
12
+ the extracted code block.
13
+
14
+ When [extractCodeBlock](../functions/extractCodeBlock.md) successfully extracts a fenced code block,
15
+ the returned string is augmented with these properties if they are present
16
+ in the markdown fence.
17
+
18
+ ## Extends
19
+
20
+ - `String`
21
+
22
+ ## Indexable
23
+
24
+ \[`index`: `number`\]: `string`
25
+
26
+ ## Properties
27
+
28
+ ### lang?
29
+
30
+ > `optional` **lang**: `string`
31
+
32
+ Defined in: [src/extract-code-block.ts:14](https://github.com/isdk/util.js/blob/20d48780d60e0a0a6f6a696a3efdfa46d4cb3b1e/src/extract-code-block.ts#L14)
33
+
34
+ The programming language identifier of the code block (e.g., 'ts', 'js').
35
+ It is normalized to lowercase.
36
+
37
+ ***
38
+
39
+ ### length
40
+
41
+ > `readonly` **length**: `number`
42
+
43
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:517
44
+
45
+ Returns the length of a String object.
46
+
47
+ #### Inherited from
48
+
49
+ `String.length`
50
+
51
+ ***
52
+
53
+ ### meta?
54
+
55
+ > `optional` **meta**: `string`
56
+
57
+ Defined in: [src/extract-code-block.ts:18](https://github.com/isdk/util.js/blob/20d48780d60e0a0a6f6a696a3efdfa46d4cb3b1e/src/extract-code-block.ts#L18)
58
+
59
+ Any additional metadata provided after the language identifier on the fence line.
60
+
61
+ ## Methods
62
+
63
+ ### \[iterator\]()
64
+
65
+ > **\[iterator\]**(): `StringIterator`\<`string`\>
66
+
67
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.iterable.d.ts:272
68
+
69
+ Iterator
70
+
71
+ #### Returns
72
+
73
+ `StringIterator`\<`string`\>
74
+
75
+ #### Inherited from
76
+
77
+ `String.[iterator]`
78
+
79
+ ***
80
+
81
+ ### ~~anchor()~~
82
+
83
+ > **anchor**(`name`): `string`
84
+
85
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:463
86
+
87
+ Returns an `<a>` HTML anchor element and sets the name attribute to the text value
88
+
89
+ #### Parameters
90
+
91
+ ##### name
92
+
93
+ `string`
94
+
95
+ #### Returns
96
+
97
+ `string`
98
+
99
+ #### Deprecated
100
+
101
+ A legacy feature for browser compatibility
102
+
103
+ #### Inherited from
104
+
105
+ `String.anchor`
106
+
107
+ ***
108
+
109
+ ### at()
110
+
111
+ > **at**(`index`): `string` \| `undefined`
112
+
113
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2022.string.d.ts:24
114
+
115
+ Returns a new String consisting of the single UTF-16 code unit located at the specified index.
116
+
117
+ #### Parameters
118
+
119
+ ##### index
120
+
121
+ `number`
122
+
123
+ The zero-based index of the desired code unit. A negative index will count back from the last item.
124
+
125
+ #### Returns
126
+
127
+ `string` \| `undefined`
128
+
129
+ #### Inherited from
130
+
131
+ `String.at`
132
+
133
+ ***
134
+
135
+ ### ~~big()~~
136
+
137
+ > **big**(): `string`
138
+
139
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:469
140
+
141
+ Returns a `<big>` HTML element
142
+
143
+ #### Returns
144
+
145
+ `string`
146
+
147
+ #### Deprecated
148
+
149
+ A legacy feature for browser compatibility
150
+
151
+ #### Inherited from
152
+
153
+ `String.big`
154
+
155
+ ***
156
+
157
+ ### ~~blink()~~
158
+
159
+ > **blink**(): `string`
160
+
161
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:475
162
+
163
+ Returns a `<blink>` HTML element
164
+
165
+ #### Returns
166
+
167
+ `string`
168
+
169
+ #### Deprecated
170
+
171
+ A legacy feature for browser compatibility
172
+
173
+ #### Inherited from
174
+
175
+ `String.blink`
176
+
177
+ ***
178
+
179
+ ### ~~bold()~~
180
+
181
+ > **bold**(): `string`
182
+
183
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:481
184
+
185
+ Returns a `<b>` HTML element
186
+
187
+ #### Returns
188
+
189
+ `string`
190
+
191
+ #### Deprecated
192
+
193
+ A legacy feature for browser compatibility
194
+
195
+ #### Inherited from
196
+
197
+ `String.bold`
198
+
199
+ ***
200
+
201
+ ### charAt()
202
+
203
+ > **charAt**(`pos`): `string`
204
+
205
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:418
206
+
207
+ Returns the character at the specified index.
208
+
209
+ #### Parameters
210
+
211
+ ##### pos
212
+
213
+ `number`
214
+
215
+ The zero-based index of the desired character.
216
+
217
+ #### Returns
218
+
219
+ `string`
220
+
221
+ #### Inherited from
222
+
223
+ `String.charAt`
224
+
225
+ ***
226
+
227
+ ### charCodeAt()
228
+
229
+ > **charCodeAt**(`index`): `number`
230
+
231
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:424
232
+
233
+ Returns the Unicode value of the character at the specified location.
234
+
235
+ #### Parameters
236
+
237
+ ##### index
238
+
239
+ `number`
240
+
241
+ The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
242
+
243
+ #### Returns
244
+
245
+ `number`
246
+
247
+ #### Inherited from
248
+
249
+ `String.charCodeAt`
250
+
251
+ ***
252
+
253
+ ### codePointAt()
254
+
255
+ > **codePointAt**(`pos`): `number` \| `undefined`
256
+
257
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:410
258
+
259
+ Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
260
+ value of the UTF-16 encoded code point starting at the string element at position pos in
261
+ the String resulting from converting this object to a String.
262
+ If there is no element at that position, the result is undefined.
263
+ If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
264
+
265
+ #### Parameters
266
+
267
+ ##### pos
268
+
269
+ `number`
270
+
271
+ #### Returns
272
+
273
+ `number` \| `undefined`
274
+
275
+ #### Inherited from
276
+
277
+ `String.codePointAt`
278
+
279
+ ***
280
+
281
+ ### concat()
282
+
283
+ > **concat**(...`strings`): `string`
284
+
285
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:430
286
+
287
+ Returns a string that contains the concatenation of two or more strings.
288
+
289
+ #### Parameters
290
+
291
+ ##### strings
292
+
293
+ ...`string`[]
294
+
295
+ The strings to append to the end of the string.
296
+
297
+ #### Returns
298
+
299
+ `string`
300
+
301
+ #### Inherited from
302
+
303
+ `String.concat`
304
+
305
+ ***
306
+
307
+ ### endsWith()
308
+
309
+ > **endsWith**(`searchString`, `endPosition?`): `boolean`
310
+
311
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:426
312
+
313
+ Returns true if the sequence of elements of searchString converted to a String is the
314
+ same as the corresponding elements of this object (converted to a String) starting at
315
+ endPosition – length(this). Otherwise returns false.
316
+
317
+ #### Parameters
318
+
319
+ ##### searchString
320
+
321
+ `string`
322
+
323
+ ##### endPosition?
324
+
325
+ `number`
326
+
327
+ #### Returns
328
+
329
+ `boolean`
330
+
331
+ #### Inherited from
332
+
333
+ `String.endsWith`
334
+
335
+ ***
336
+
337
+ ### ~~fixed()~~
338
+
339
+ > **fixed**(): `string`
340
+
341
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:487
342
+
343
+ Returns a `<tt>` HTML element
344
+
345
+ #### Returns
346
+
347
+ `string`
348
+
349
+ #### Deprecated
350
+
351
+ A legacy feature for browser compatibility
352
+
353
+ #### Inherited from
354
+
355
+ `String.fixed`
356
+
357
+ ***
358
+
359
+ ### ~~fontcolor()~~
360
+
361
+ > **fontcolor**(`color`): `string`
362
+
363
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:493
364
+
365
+ Returns a `<font>` HTML element and sets the color attribute value
366
+
367
+ #### Parameters
368
+
369
+ ##### color
370
+
371
+ `string`
372
+
373
+ #### Returns
374
+
375
+ `string`
376
+
377
+ #### Deprecated
378
+
379
+ A legacy feature for browser compatibility
380
+
381
+ #### Inherited from
382
+
383
+ `String.fontcolor`
384
+
385
+ ***
386
+
387
+ ### ~~fontsize()~~
388
+
389
+ #### Call Signature
390
+
391
+ > **fontsize**(`size`): `string`
392
+
393
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:499
394
+
395
+ Returns a `<font>` HTML element and sets the size attribute value
396
+
397
+ ##### Parameters
398
+
399
+ ###### size
400
+
401
+ `number`
402
+
403
+ ##### Returns
404
+
405
+ `string`
406
+
407
+ ##### Deprecated
408
+
409
+ A legacy feature for browser compatibility
410
+
411
+ ##### Inherited from
412
+
413
+ `String.fontsize`
414
+
415
+ #### Call Signature
416
+
417
+ > **fontsize**(`size`): `string`
418
+
419
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:505
420
+
421
+ Returns a `<font>` HTML element and sets the size attribute value
422
+
423
+ ##### Parameters
424
+
425
+ ###### size
426
+
427
+ `string`
428
+
429
+ ##### Returns
430
+
431
+ `string`
432
+
433
+ ##### Deprecated
434
+
435
+ A legacy feature for browser compatibility
436
+
437
+ ##### Inherited from
438
+
439
+ `String.fontsize`
440
+
441
+ ***
442
+
443
+ ### includes()
444
+
445
+ > **includes**(`searchString`, `position?`): `boolean`
446
+
447
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:419
448
+
449
+ Returns true if searchString appears as a substring of the result of converting this
450
+ object to a String, at one or more positions that are
451
+ greater than or equal to position; otherwise, returns false.
452
+
453
+ #### Parameters
454
+
455
+ ##### searchString
456
+
457
+ `string`
458
+
459
+ search string
460
+
461
+ ##### position?
462
+
463
+ `number`
464
+
465
+ If position is undefined, 0 is assumed, so as to search all of the String.
466
+
467
+ #### Returns
468
+
469
+ `boolean`
470
+
471
+ #### Inherited from
472
+
473
+ `String.includes`
474
+
475
+ ***
476
+
477
+ ### indexOf()
478
+
479
+ > **indexOf**(`searchString`, `position?`): `number`
480
+
481
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:437
482
+
483
+ Returns the position of the first occurrence of a substring.
484
+
485
+ #### Parameters
486
+
487
+ ##### searchString
488
+
489
+ `string`
490
+
491
+ The substring to search for in the string
492
+
493
+ ##### position?
494
+
495
+ `number`
496
+
497
+ The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
498
+
499
+ #### Returns
500
+
501
+ `number`
502
+
503
+ #### Inherited from
504
+
505
+ `String.indexOf`
506
+
507
+ ***
508
+
509
+ ### ~~italics()~~
510
+
511
+ > **italics**(): `string`
512
+
513
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:511
514
+
515
+ Returns an `<i>` HTML element
516
+
517
+ #### Returns
518
+
519
+ `string`
520
+
521
+ #### Deprecated
522
+
523
+ A legacy feature for browser compatibility
524
+
525
+ #### Inherited from
526
+
527
+ `String.italics`
528
+
529
+ ***
530
+
531
+ ### lastIndexOf()
532
+
533
+ > **lastIndexOf**(`searchString`, `position?`): `number`
534
+
535
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:444
536
+
537
+ Returns the last occurrence of a substring in the string.
538
+
539
+ #### Parameters
540
+
541
+ ##### searchString
542
+
543
+ `string`
544
+
545
+ The substring to search for.
546
+
547
+ ##### position?
548
+
549
+ `number`
550
+
551
+ The index at which to begin searching. If omitted, the search begins at the end of the string.
552
+
553
+ #### Returns
554
+
555
+ `number`
556
+
557
+ #### Inherited from
558
+
559
+ `String.lastIndexOf`
560
+
561
+ ***
562
+
563
+ ### ~~link()~~
564
+
565
+ > **link**(`url`): `string`
566
+
567
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:517
568
+
569
+ Returns an `<a>` HTML element and sets the href attribute value
570
+
571
+ #### Parameters
572
+
573
+ ##### url
574
+
575
+ `string`
576
+
577
+ #### Returns
578
+
579
+ `string`
580
+
581
+ #### Deprecated
582
+
583
+ A legacy feature for browser compatibility
584
+
585
+ #### Inherited from
586
+
587
+ `String.link`
588
+
589
+ ***
590
+
591
+ ### localeCompare()
592
+
593
+ #### Call Signature
594
+
595
+ > **localeCompare**(`that`): `number`
596
+
597
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:450
598
+
599
+ Determines whether two strings are equivalent in the current locale.
600
+
601
+ ##### Parameters
602
+
603
+ ###### that
604
+
605
+ `string`
606
+
607
+ String to compare to target string
608
+
609
+ ##### Returns
610
+
611
+ `number`
612
+
613
+ ##### Inherited from
614
+
615
+ `String.localeCompare`
616
+
617
+ #### Call Signature
618
+
619
+ > **localeCompare**(`that`, `locales?`, `options?`): `number`
620
+
621
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:4562
622
+
623
+ Determines whether two strings are equivalent in the current or specified locale.
624
+
625
+ ##### Parameters
626
+
627
+ ###### that
628
+
629
+ `string`
630
+
631
+ String to compare to target string
632
+
633
+ ###### locales?
634
+
635
+ A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
636
+
637
+ `string` | `string`[]
638
+
639
+ ###### options?
640
+
641
+ `CollatorOptions`
642
+
643
+ An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
644
+
645
+ ##### Returns
646
+
647
+ `number`
648
+
649
+ ##### Inherited from
650
+
651
+ `String.localeCompare`
652
+
653
+ #### Call Signature
654
+
655
+ > **localeCompare**(`that`, `locales?`, `options?`): `number`
656
+
657
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2020.string.d.ts:43
658
+
659
+ Determines whether two strings are equivalent in the current or specified locale.
660
+
661
+ ##### Parameters
662
+
663
+ ###### that
664
+
665
+ `string`
666
+
667
+ String to compare to target string
668
+
669
+ ###### locales?
670
+
671
+ `LocalesArgument`
672
+
673
+ A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
674
+
675
+ ###### options?
676
+
677
+ `CollatorOptions`
678
+
679
+ An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
680
+
681
+ ##### Returns
682
+
683
+ `number`
684
+
685
+ ##### Inherited from
686
+
687
+ `String.localeCompare`
688
+
689
+ ***
690
+
691
+ ### match()
692
+
693
+ #### Call Signature
694
+
695
+ > **match**(`regexp`): `RegExpMatchArray` \| `null`
696
+
697
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:456
698
+
699
+ Matches a string with a regular expression, and returns an array containing the results of that search.
700
+
701
+ ##### Parameters
702
+
703
+ ###### regexp
704
+
705
+ A variable name or string literal containing the regular expression pattern and flags.
706
+
707
+ `string` | `RegExp`
708
+
709
+ ##### Returns
710
+
711
+ `RegExpMatchArray` \| `null`
712
+
713
+ ##### Inherited from
714
+
715
+ `String.match`
716
+
717
+ #### Call Signature
718
+
719
+ > **match**(`matcher`): `RegExpMatchArray` \| `null`
720
+
721
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:241
722
+
723
+ Matches a string or an object that supports being matched against, and returns an array
724
+ containing the results of that search, or null if no matches are found.
725
+
726
+ ##### Parameters
727
+
728
+ ###### matcher
729
+
730
+ An object that supports being matched against.
731
+
732
+ ###### [match]
733
+
734
+ ##### Returns
735
+
736
+ `RegExpMatchArray` \| `null`
737
+
738
+ ##### Inherited from
739
+
740
+ `String.match`
741
+
742
+ ***
743
+
744
+ ### matchAll()
745
+
746
+ > **matchAll**(`regexp`): `RegExpStringIterator`\<`RegExpExecArray`\>
747
+
748
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2020.string.d.ts:29
749
+
750
+ Matches a string with a regular expression, and returns an iterable of matches
751
+ containing the results of that search.
752
+
753
+ #### Parameters
754
+
755
+ ##### regexp
756
+
757
+ `RegExp`
758
+
759
+ A variable name or string literal containing the regular expression pattern and flags.
760
+
761
+ #### Returns
762
+
763
+ `RegExpStringIterator`\<`RegExpExecArray`\>
764
+
765
+ #### Inherited from
766
+
767
+ `String.matchAll`
768
+
769
+ ***
770
+
771
+ ### normalize()
772
+
773
+ #### Call Signature
774
+
775
+ > **normalize**(`form`): `string`
776
+
777
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:434
778
+
779
+ Returns the String value result of normalizing the string into the normalization form
780
+ named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
781
+
782
+ ##### Parameters
783
+
784
+ ###### form
785
+
786
+ Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
787
+ is "NFC"
788
+
789
+ `"NFC"` | `"NFD"` | `"NFKC"` | `"NFKD"`
790
+
791
+ ##### Returns
792
+
793
+ `string`
794
+
795
+ ##### Inherited from
796
+
797
+ `String.normalize`
798
+
799
+ #### Call Signature
800
+
801
+ > **normalize**(`form?`): `string`
802
+
803
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:442
804
+
805
+ Returns the String value result of normalizing the string into the normalization form
806
+ named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
807
+
808
+ ##### Parameters
809
+
810
+ ###### form?
811
+
812
+ `string`
813
+
814
+ Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
815
+ is "NFC"
816
+
817
+ ##### Returns
818
+
819
+ `string`
820
+
821
+ ##### Inherited from
822
+
823
+ `String.normalize`
824
+
825
+ ***
826
+
827
+ ### padEnd()
828
+
829
+ > **padEnd**(`maxLength`, `fillString?`): `string`
830
+
831
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2017.string.d.ts:44
832
+
833
+ Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
834
+ The padding is applied from the end (right) of the current string.
835
+
836
+ #### Parameters
837
+
838
+ ##### maxLength
839
+
840
+ `number`
841
+
842
+ The length of the resulting string once the current string has been padded.
843
+ If this parameter is smaller than the current string's length, the current string will be returned as it is.
844
+
845
+ ##### fillString?
846
+
847
+ `string`
848
+
849
+ The string to pad the current string with.
850
+ If this string is too long, it will be truncated and the left-most part will be applied.
851
+ The default value for this parameter is " " (U+0020).
852
+
853
+ #### Returns
854
+
855
+ `string`
856
+
857
+ #### Inherited from
858
+
859
+ `String.padEnd`
860
+
861
+ ***
862
+
863
+ ### padStart()
864
+
865
+ > **padStart**(`maxLength`, `fillString?`): `string`
866
+
867
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2017.string.d.ts:31
868
+
869
+ Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
870
+ The padding is applied from the start (left) of the current string.
871
+
872
+ #### Parameters
873
+
874
+ ##### maxLength
875
+
876
+ `number`
877
+
878
+ The length of the resulting string once the current string has been padded.
879
+ If this parameter is smaller than the current string's length, the current string will be returned as it is.
880
+
881
+ ##### fillString?
882
+
883
+ `string`
884
+
885
+ The string to pad the current string with.
886
+ If this string is too long, it will be truncated and the left-most part will be applied.
887
+ The default value for this parameter is " " (U+0020).
888
+
889
+ #### Returns
890
+
891
+ `string`
892
+
893
+ #### Inherited from
894
+
895
+ `String.padStart`
896
+
897
+ ***
898
+
899
+ ### repeat()
900
+
901
+ > **repeat**(`count`): `string`
902
+
903
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:449
904
+
905
+ Returns a String value that is made from count copies appended together. If count is 0,
906
+ the empty string is returned.
907
+
908
+ #### Parameters
909
+
910
+ ##### count
911
+
912
+ `number`
913
+
914
+ number of copies to append
915
+
916
+ #### Returns
917
+
918
+ `string`
919
+
920
+ #### Inherited from
921
+
922
+ `String.repeat`
923
+
924
+ ***
925
+
926
+ ### replace()
927
+
928
+ #### Call Signature
929
+
930
+ > **replace**(`searchValue`, `replaceValue`): `string`
931
+
932
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:463
933
+
934
+ Replaces text in a string, using a regular expression or search string.
935
+
936
+ ##### Parameters
937
+
938
+ ###### searchValue
939
+
940
+ A string or regular expression to search for.
941
+
942
+ `string` | `RegExp`
943
+
944
+ ###### replaceValue
945
+
946
+ `string`
947
+
948
+ A string containing the text to replace. When the [`searchValue`](#replace) is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of [`searchValue`](#replace) is replaced.
949
+
950
+ ##### Returns
951
+
952
+ `string`
953
+
954
+ ##### Inherited from
955
+
956
+ `String.replace`
957
+
958
+ #### Call Signature
959
+
960
+ > **replace**(`searchValue`, `replacer`): `string`
961
+
962
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:470
963
+
964
+ Replaces text in a string, using a regular expression or search string.
965
+
966
+ ##### Parameters
967
+
968
+ ###### searchValue
969
+
970
+ A string to search for.
971
+
972
+ `string` | `RegExp`
973
+
974
+ ###### replacer
975
+
976
+ (`substring`, ...`args`) => `string`
977
+
978
+ A function that returns the replacement text.
979
+
980
+ ##### Returns
981
+
982
+ `string`
983
+
984
+ ##### Inherited from
985
+
986
+ `String.replace`
987
+
988
+ #### Call Signature
989
+
990
+ > **replace**(`searchValue`, `replaceValue`): `string`
991
+
992
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:248
993
+
994
+ Passes a string and [`replaceValue`](#replace) to the `[Symbol.replace]` method on [`searchValue`](#replace). This method is expected to implement its own replacement algorithm.
995
+
996
+ ##### Parameters
997
+
998
+ ###### searchValue
999
+
1000
+ An object that supports searching for and replacing matches within a string.
1001
+
1002
+ ###### [replace]
1003
+
1004
+ ###### replaceValue
1005
+
1006
+ `string`
1007
+
1008
+ The replacement text.
1009
+
1010
+ ##### Returns
1011
+
1012
+ `string`
1013
+
1014
+ ##### Inherited from
1015
+
1016
+ `String.replace`
1017
+
1018
+ #### Call Signature
1019
+
1020
+ > **replace**(`searchValue`, `replacer`): `string`
1021
+
1022
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:255
1023
+
1024
+ Replaces text in a string, using an object that supports replacement within a string.
1025
+
1026
+ ##### Parameters
1027
+
1028
+ ###### searchValue
1029
+
1030
+ A object can search for and replace matches within a string.
1031
+
1032
+ ###### [replace]
1033
+
1034
+ ###### replacer
1035
+
1036
+ (`substring`, ...`args`) => `string`
1037
+
1038
+ A function that returns the replacement text.
1039
+
1040
+ ##### Returns
1041
+
1042
+ `string`
1043
+
1044
+ ##### Inherited from
1045
+
1046
+ `String.replace`
1047
+
1048
+ ***
1049
+
1050
+ ### replaceAll()
1051
+
1052
+ #### Call Signature
1053
+
1054
+ > **replaceAll**(`searchValue`, `replaceValue`): `string`
1055
+
1056
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2021.string.d.ts:25
1057
+
1058
+ Replace all instances of a substring in a string, using a regular expression or search string.
1059
+
1060
+ ##### Parameters
1061
+
1062
+ ###### searchValue
1063
+
1064
+ A string to search for.
1065
+
1066
+ `string` | `RegExp`
1067
+
1068
+ ###### replaceValue
1069
+
1070
+ `string`
1071
+
1072
+ A string containing the text to replace for every successful match of searchValue in this string.
1073
+
1074
+ ##### Returns
1075
+
1076
+ `string`
1077
+
1078
+ ##### Inherited from
1079
+
1080
+ `String.replaceAll`
1081
+
1082
+ #### Call Signature
1083
+
1084
+ > **replaceAll**(`searchValue`, `replacer`): `string`
1085
+
1086
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2021.string.d.ts:32
1087
+
1088
+ Replace all instances of a substring in a string, using a regular expression or search string.
1089
+
1090
+ ##### Parameters
1091
+
1092
+ ###### searchValue
1093
+
1094
+ A string to search for.
1095
+
1096
+ `string` | `RegExp`
1097
+
1098
+ ###### replacer
1099
+
1100
+ (`substring`, ...`args`) => `string`
1101
+
1102
+ A function that returns the replacement text.
1103
+
1104
+ ##### Returns
1105
+
1106
+ `string`
1107
+
1108
+ ##### Inherited from
1109
+
1110
+ `String.replaceAll`
1111
+
1112
+ ***
1113
+
1114
+ ### search()
1115
+
1116
+ #### Call Signature
1117
+
1118
+ > **search**(`regexp`): `number`
1119
+
1120
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:476
1121
+
1122
+ Finds the first substring match in a regular expression search.
1123
+
1124
+ ##### Parameters
1125
+
1126
+ ###### regexp
1127
+
1128
+ The regular expression pattern and applicable flags.
1129
+
1130
+ `string` | `RegExp`
1131
+
1132
+ ##### Returns
1133
+
1134
+ `number`
1135
+
1136
+ ##### Inherited from
1137
+
1138
+ `String.search`
1139
+
1140
+ #### Call Signature
1141
+
1142
+ > **search**(`searcher`): `number`
1143
+
1144
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:261
1145
+
1146
+ Finds the first substring match in a regular expression search.
1147
+
1148
+ ##### Parameters
1149
+
1150
+ ###### searcher
1151
+
1152
+ An object which supports searching within a string.
1153
+
1154
+ ###### [search]
1155
+
1156
+ ##### Returns
1157
+
1158
+ `number`
1159
+
1160
+ ##### Inherited from
1161
+
1162
+ `String.search`
1163
+
1164
+ ***
1165
+
1166
+ ### slice()
1167
+
1168
+ > **slice**(`start?`, `end?`): `string`
1169
+
1170
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:484
1171
+
1172
+ Returns a section of a string.
1173
+
1174
+ #### Parameters
1175
+
1176
+ ##### start?
1177
+
1178
+ `number`
1179
+
1180
+ The index to the beginning of the specified portion of stringObj.
1181
+
1182
+ ##### end?
1183
+
1184
+ `number`
1185
+
1186
+ The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
1187
+ If this value is not specified, the substring continues to the end of stringObj.
1188
+
1189
+ #### Returns
1190
+
1191
+ `string`
1192
+
1193
+ #### Inherited from
1194
+
1195
+ `String.slice`
1196
+
1197
+ ***
1198
+
1199
+ ### ~~small()~~
1200
+
1201
+ > **small**(): `string`
1202
+
1203
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:523
1204
+
1205
+ Returns a `<small>` HTML element
1206
+
1207
+ #### Returns
1208
+
1209
+ `string`
1210
+
1211
+ #### Deprecated
1212
+
1213
+ A legacy feature for browser compatibility
1214
+
1215
+ #### Inherited from
1216
+
1217
+ `String.small`
1218
+
1219
+ ***
1220
+
1221
+ ### split()
1222
+
1223
+ #### Call Signature
1224
+
1225
+ > **split**(`separator`, `limit?`): `string`[]
1226
+
1227
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:491
1228
+
1229
+ Split a string into substrings using the specified separator and return them as an array.
1230
+
1231
+ ##### Parameters
1232
+
1233
+ ###### separator
1234
+
1235
+ A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
1236
+
1237
+ `string` | `RegExp`
1238
+
1239
+ ###### limit?
1240
+
1241
+ `number`
1242
+
1243
+ A value used to limit the number of elements returned in the array.
1244
+
1245
+ ##### Returns
1246
+
1247
+ `string`[]
1248
+
1249
+ ##### Inherited from
1250
+
1251
+ `String.split`
1252
+
1253
+ #### Call Signature
1254
+
1255
+ > **split**(`splitter`, `limit?`): `string`[]
1256
+
1257
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:268
1258
+
1259
+ Split a string into substrings using the specified separator and return them as an array.
1260
+
1261
+ ##### Parameters
1262
+
1263
+ ###### splitter
1264
+
1265
+ An object that can split a string.
1266
+
1267
+ ###### [split]
1268
+
1269
+ ###### limit?
1270
+
1271
+ `number`
1272
+
1273
+ A value used to limit the number of elements returned in the array.
1274
+
1275
+ ##### Returns
1276
+
1277
+ `string`[]
1278
+
1279
+ ##### Inherited from
1280
+
1281
+ `String.split`
1282
+
1283
+ ***
1284
+
1285
+ ### startsWith()
1286
+
1287
+ > **startsWith**(`searchString`, `position?`): `boolean`
1288
+
1289
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:456
1290
+
1291
+ Returns true if the sequence of elements of searchString converted to a String is the
1292
+ same as the corresponding elements of this object (converted to a String) starting at
1293
+ position. Otherwise returns false.
1294
+
1295
+ #### Parameters
1296
+
1297
+ ##### searchString
1298
+
1299
+ `string`
1300
+
1301
+ ##### position?
1302
+
1303
+ `number`
1304
+
1305
+ #### Returns
1306
+
1307
+ `boolean`
1308
+
1309
+ #### Inherited from
1310
+
1311
+ `String.startsWith`
1312
+
1313
+ ***
1314
+
1315
+ ### ~~strike()~~
1316
+
1317
+ > **strike**(): `string`
1318
+
1319
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:529
1320
+
1321
+ Returns a `<strike>` HTML element
1322
+
1323
+ #### Returns
1324
+
1325
+ `string`
1326
+
1327
+ #### Deprecated
1328
+
1329
+ A legacy feature for browser compatibility
1330
+
1331
+ #### Inherited from
1332
+
1333
+ `String.strike`
1334
+
1335
+ ***
1336
+
1337
+ ### ~~sub()~~
1338
+
1339
+ > **sub**(): `string`
1340
+
1341
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:535
1342
+
1343
+ Returns a `<sub>` HTML element
1344
+
1345
+ #### Returns
1346
+
1347
+ `string`
1348
+
1349
+ #### Deprecated
1350
+
1351
+ A legacy feature for browser compatibility
1352
+
1353
+ #### Inherited from
1354
+
1355
+ `String.sub`
1356
+
1357
+ ***
1358
+
1359
+ ### ~~substr()~~
1360
+
1361
+ > **substr**(`from`, `length?`): `string`
1362
+
1363
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:526
1364
+
1365
+ Gets a substring beginning at the specified location and having the specified length.
1366
+
1367
+ #### Parameters
1368
+
1369
+ ##### from
1370
+
1371
+ `number`
1372
+
1373
+ The starting position of the desired substring. The index of the first character in the string is zero.
1374
+
1375
+ ##### length?
1376
+
1377
+ `number`
1378
+
1379
+ The number of characters to include in the returned substring.
1380
+
1381
+ #### Returns
1382
+
1383
+ `string`
1384
+
1385
+ #### Deprecated
1386
+
1387
+ A legacy feature for browser compatibility
1388
+
1389
+ #### Inherited from
1390
+
1391
+ `String.substr`
1392
+
1393
+ ***
1394
+
1395
+ ### substring()
1396
+
1397
+ > **substring**(`start`, `end?`): `string`
1398
+
1399
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:499
1400
+
1401
+ Returns the substring at the specified location within a String object.
1402
+
1403
+ #### Parameters
1404
+
1405
+ ##### start
1406
+
1407
+ `number`
1408
+
1409
+ The zero-based index number indicating the beginning of the substring.
1410
+
1411
+ ##### end?
1412
+
1413
+ `number`
1414
+
1415
+ Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
1416
+ If end is omitted, the characters from start through the end of the original string are returned.
1417
+
1418
+ #### Returns
1419
+
1420
+ `string`
1421
+
1422
+ #### Inherited from
1423
+
1424
+ `String.substring`
1425
+
1426
+ ***
1427
+
1428
+ ### ~~sup()~~
1429
+
1430
+ > **sup**(): `string`
1431
+
1432
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2015.core.d.ts:541
1433
+
1434
+ Returns a `<sup>` HTML element
1435
+
1436
+ #### Returns
1437
+
1438
+ `string`
1439
+
1440
+ #### Deprecated
1441
+
1442
+ A legacy feature for browser compatibility
1443
+
1444
+ #### Inherited from
1445
+
1446
+ `String.sup`
1447
+
1448
+ ***
1449
+
1450
+ ### toLocaleLowerCase()
1451
+
1452
+ #### Call Signature
1453
+
1454
+ > **toLocaleLowerCase**(`locales?`): `string`
1455
+
1456
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:505
1457
+
1458
+ Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
1459
+
1460
+ ##### Parameters
1461
+
1462
+ ###### locales?
1463
+
1464
+ `string` | `string`[]
1465
+
1466
+ ##### Returns
1467
+
1468
+ `string`
1469
+
1470
+ ##### Inherited from
1471
+
1472
+ `String.toLocaleLowerCase`
1473
+
1474
+ #### Call Signature
1475
+
1476
+ > **toLocaleLowerCase**(`locales?`): `string`
1477
+
1478
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2020.string.d.ts:32
1479
+
1480
+ Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
1481
+
1482
+ ##### Parameters
1483
+
1484
+ ###### locales?
1485
+
1486
+ `LocalesArgument`
1487
+
1488
+ ##### Returns
1489
+
1490
+ `string`
1491
+
1492
+ ##### Inherited from
1493
+
1494
+ `String.toLocaleLowerCase`
1495
+
1496
+ ***
1497
+
1498
+ ### toLocaleUpperCase()
1499
+
1500
+ #### Call Signature
1501
+
1502
+ > **toLocaleUpperCase**(`locales?`): `string`
1503
+
1504
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:511
1505
+
1506
+ Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
1507
+
1508
+ ##### Parameters
1509
+
1510
+ ###### locales?
1511
+
1512
+ `string` | `string`[]
1513
+
1514
+ ##### Returns
1515
+
1516
+ `string`
1517
+
1518
+ ##### Inherited from
1519
+
1520
+ `String.toLocaleUpperCase`
1521
+
1522
+ #### Call Signature
1523
+
1524
+ > **toLocaleUpperCase**(`locales?`): `string`
1525
+
1526
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2020.string.d.ts:35
1527
+
1528
+ Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
1529
+
1530
+ ##### Parameters
1531
+
1532
+ ###### locales?
1533
+
1534
+ `LocalesArgument`
1535
+
1536
+ ##### Returns
1537
+
1538
+ `string`
1539
+
1540
+ ##### Inherited from
1541
+
1542
+ `String.toLocaleUpperCase`
1543
+
1544
+ ***
1545
+
1546
+ ### toLowerCase()
1547
+
1548
+ > **toLowerCase**(): `string`
1549
+
1550
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:502
1551
+
1552
+ Converts all the alphabetic characters in a string to lowercase.
1553
+
1554
+ #### Returns
1555
+
1556
+ `string`
1557
+
1558
+ #### Inherited from
1559
+
1560
+ `String.toLowerCase`
1561
+
1562
+ ***
1563
+
1564
+ ### toString()
1565
+
1566
+ > **toString**(): `string`
1567
+
1568
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:412
1569
+
1570
+ Returns a string representation of a string.
1571
+
1572
+ #### Returns
1573
+
1574
+ `string`
1575
+
1576
+ #### Inherited from
1577
+
1578
+ `String.toString`
1579
+
1580
+ ***
1581
+
1582
+ ### toUpperCase()
1583
+
1584
+ > **toUpperCase**(): `string`
1585
+
1586
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:508
1587
+
1588
+ Converts all the alphabetic characters in a string to uppercase.
1589
+
1590
+ #### Returns
1591
+
1592
+ `string`
1593
+
1594
+ #### Inherited from
1595
+
1596
+ `String.toUpperCase`
1597
+
1598
+ ***
1599
+
1600
+ ### trim()
1601
+
1602
+ > **trim**(): `string`
1603
+
1604
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:514
1605
+
1606
+ Removes the leading and trailing white space and line terminator characters from a string.
1607
+
1608
+ #### Returns
1609
+
1610
+ `string`
1611
+
1612
+ #### Inherited from
1613
+
1614
+ `String.trim`
1615
+
1616
+ ***
1617
+
1618
+ ### trimEnd()
1619
+
1620
+ > **trimEnd**(): `string`
1621
+
1622
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2019.string.d.ts:21
1623
+
1624
+ Removes the trailing white space and line terminator characters from a string.
1625
+
1626
+ #### Returns
1627
+
1628
+ `string`
1629
+
1630
+ #### Inherited from
1631
+
1632
+ `String.trimEnd`
1633
+
1634
+ ***
1635
+
1636
+ ### ~~trimLeft()~~
1637
+
1638
+ > **trimLeft**(): `string`
1639
+
1640
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2019.string.d.ts:30
1641
+
1642
+ Removes the leading white space and line terminator characters from a string.
1643
+
1644
+ #### Returns
1645
+
1646
+ `string`
1647
+
1648
+ #### Deprecated
1649
+
1650
+ A legacy feature for browser compatibility. Use `trimStart` instead
1651
+
1652
+ #### Inherited from
1653
+
1654
+ `String.trimLeft`
1655
+
1656
+ ***
1657
+
1658
+ ### ~~trimRight()~~
1659
+
1660
+ > **trimRight**(): `string`
1661
+
1662
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2019.string.d.ts:36
1663
+
1664
+ Removes the trailing white space and line terminator characters from a string.
1665
+
1666
+ #### Returns
1667
+
1668
+ `string`
1669
+
1670
+ #### Deprecated
1671
+
1672
+ A legacy feature for browser compatibility. Use `trimEnd` instead
1673
+
1674
+ #### Inherited from
1675
+
1676
+ `String.trimRight`
1677
+
1678
+ ***
1679
+
1680
+ ### trimStart()
1681
+
1682
+ > **trimStart**(): `string`
1683
+
1684
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es2019.string.d.ts:24
1685
+
1686
+ Removes the leading white space and line terminator characters from a string.
1687
+
1688
+ #### Returns
1689
+
1690
+ `string`
1691
+
1692
+ #### Inherited from
1693
+
1694
+ `String.trimStart`
1695
+
1696
+ ***
1697
+
1698
+ ### valueOf()
1699
+
1700
+ > **valueOf**(): `string`
1701
+
1702
+ Defined in: node\_modules/.pnpm/typescript@5.8.2/node\_modules/typescript/lib/lib.es5.d.ts:529
1703
+
1704
+ Returns the primitive value of the specified object.
1705
+
1706
+ #### Returns
1707
+
1708
+ `string`
1709
+
1710
+ #### Inherited from
1711
+
1712
+ `String.valueOf`