type-fest 4.26.0 → 4.27.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/index.d.ts CHANGED
@@ -154,6 +154,7 @@ export type {DelimiterCasedProperties} from './source/delimiter-cased-properties
154
154
  export type {DelimiterCasedPropertiesDeep} from './source/delimiter-cased-properties-deep';
155
155
  export type {Join} from './source/join';
156
156
  export type {Split} from './source/split';
157
+ export type {Words} from './source/words';
157
158
  export type {Trim} from './source/trim';
158
159
  export type {Replace} from './source/replace';
159
160
  export type {StringRepeat} from './source/string-repeat';
package/license-cc0 ADDED
@@ -0,0 +1,121 @@
1
+ Creative Commons Legal Code
2
+
3
+ CC0 1.0 Universal
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
41
+ protected by copyright and related or neighboring rights ("Copyright and
42
+ Related Rights"). Copyright and Related Rights include, but are not
43
+ limited to, the following:
44
+
45
+ i. the right to reproduce, adapt, distribute, perform, display,
46
+ communicate, and translate a Work;
47
+ ii. moral rights retained by the original author(s) and/or performer(s);
48
+ iii. publicity and privacy rights pertaining to a person's image or
49
+ likeness depicted in a Work;
50
+ iv. rights protecting against unfair competition in regards to a Work,
51
+ subject to the limitations in paragraph 4(a), below;
52
+ v. rights protecting the extraction, dissemination, use and reuse of data
53
+ in a Work;
54
+ vi. database rights (such as those arising under Directive 96/9/EC of the
55
+ European Parliament and of the Council of 11 March 1996 on the legal
56
+ protection of databases, and under any national implementation
57
+ thereof, including any amended or successor version of such
58
+ directive); and
59
+ vii. other similar, equivalent or corresponding rights throughout the
60
+ world based on applicable law or treaty, and any national
61
+ implementations thereof.
62
+
63
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
64
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
65
+ irrevocably and unconditionally waives, abandons, and surrenders all of
66
+ Affirmer's Copyright and Related Rights and associated claims and causes
67
+ of action, whether now known or unknown (including existing as well as
68
+ future claims and causes of action), in the Work (i) in all territories
69
+ worldwide, (ii) for the maximum duration provided by applicable law or
70
+ treaty (including future time extensions), (iii) in any current or future
71
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
72
+ including without limitation commercial, advertising or promotional
73
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74
+ member of the public at large and to the detriment of Affirmer's heirs and
75
+ successors, fully intending that such Waiver shall not be subject to
76
+ revocation, rescission, cancellation, termination, or any other legal or
77
+ equitable action to disrupt the quiet enjoyment of the Work by the public
78
+ as contemplated by Affirmer's express Statement of Purpose.
79
+
80
+ 3. Public License Fallback. Should any part of the Waiver for any reason
81
+ be judged legally invalid or ineffective under applicable law, then the
82
+ Waiver shall be preserved to the maximum extent permitted taking into
83
+ account Affirmer's express Statement of Purpose. In addition, to the
84
+ extent the Waiver is so judged Affirmer hereby grants to each affected
85
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
86
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
87
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
88
+ maximum duration provided by applicable law or treaty (including future
89
+ time extensions), (iii) in any current or future medium and for any number
90
+ of copies, and (iv) for any purpose whatsoever, including without
91
+ limitation commercial, advertising or promotional purposes (the
92
+ "License"). The License shall be deemed effective as of the date CC0 was
93
+ applied by Affirmer to the Work. Should any part of the License for any
94
+ reason be judged legally invalid or ineffective under applicable law, such
95
+ partial invalidity or ineffectiveness shall not invalidate the remainder
96
+ of the License, and in such case Affirmer hereby affirms that he or she
97
+ will not (i) exercise any of his or her remaining Copyright and Related
98
+ Rights in the Work or (ii) assert any associated claims and causes of
99
+ action with respect to the Work, in either case contrary to Affirmer's
100
+ express Statement of Purpose.
101
+
102
+ 4. Limitations and Disclaimers.
103
+
104
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
105
+ surrendered, licensed or otherwise affected by this document.
106
+ b. Affirmer offers the Work as-is and makes no representations or
107
+ warranties of any kind concerning the Work, express, implied,
108
+ statutory or otherwise, including without limitation warranties of
109
+ title, merchantability, fitness for a particular purpose, non
110
+ infringement, or the absence of latent or other defects, accuracy, or
111
+ the present or absence of errors, whether or not discoverable, all to
112
+ the greatest extent permissible under applicable law.
113
+ c. Affirmer disclaims responsibility for clearing rights of other persons
114
+ that may apply to the Work or any use thereof, including without
115
+ limitation any person's Copyright and Related Rights in the Work.
116
+ Further, Affirmer disclaims responsibility for obtaining any necessary
117
+ consents, permissions or other rights required for any use of the
118
+ Work.
119
+ d. Affirmer understands and acknowledges that Creative Commons is not a
120
+ party to this document and has no duty or obligation with respect to
121
+ this CC0 or use of the Work.
package/license-mit ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-fest",
3
- "version": "4.26.0",
3
+ "version": "4.27.0",
4
4
  "description": "A collection of essential TypeScript types",
5
5
  "license": "(MIT OR CC0-1.0)",
6
6
  "repository": "sindresorhus/type-fest",
@@ -24,7 +24,9 @@
24
24
  },
25
25
  "files": [
26
26
  "index.d.ts",
27
- "source"
27
+ "source",
28
+ "license-mit",
29
+ "license-cc0"
28
30
  ],
29
31
  "keywords": [
30
32
  "typescript",
@@ -39,11 +41,11 @@
39
41
  "generics"
40
42
  ],
41
43
  "devDependencies": {
42
- "expect-type": "^0.19.0",
43
- "npm-run-all2": "^6.1.2",
44
- "tsd": "^0.31.0",
45
- "typescript": "~5.5.3",
46
- "xo": "^0.58.0"
44
+ "expect-type": "^1.1.0",
45
+ "npm-run-all2": "^7.0.1",
46
+ "tsd": "^0.31.2",
47
+ "typescript": "~5.6.3",
48
+ "xo": "^0.59.3"
47
49
  },
48
50
  "xo": {
49
51
  "rules": {
@@ -55,6 +57,7 @@
55
57
  "@typescript-eslint/no-redeclare": "off",
56
58
  "@typescript-eslint/no-confusing-void-expression": "off",
57
59
  "@typescript-eslint/no-unsafe-argument": "off",
60
+ "n/file-extension-in-import": "off",
58
61
  "object-curly-newline": [
59
62
  "error",
60
63
  {
package/readme.md CHANGED
@@ -267,6 +267,7 @@ type ShouldBeNever = IfAny<'not any', 'not never', 'never'>;
267
267
 
268
268
  - [`Trim`](source/trim.d.ts) - Remove leading and trailing spaces from a string.
269
269
  - [`Split`](source/split.d.ts) - Represents an array of strings split using a given character or character set.
270
+ - [`Words`](source/words.d.ts) - Represents an array of strings split using a heuristic for detecting words.
270
271
  - [`Replace`](source/replace.d.ts) - Represents a string with some or all matches replaced by a replacement.
271
272
  - [`StringSlice`](source/string-slice.d.ts) - Returns a string slice of a given range, just like `String#slice()`.
272
273
  - [`StringRepeat`](source/string-repeat.d.ts) - Returns a new string which contains the specified number of copies of a given string, just like `String#repeat()`.
@@ -392,6 +393,53 @@ type ShouldBeNever = IfAny<'not any', 'not never', 'never'>;
392
393
 
393
394
  There are many advanced types most users don't know about.
394
395
 
396
+
397
+ - [`Awaited<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#awaitedtype) - Extract the type of a value that a `Promise` resolves to.
398
+ <details>
399
+ <summary>
400
+ Example
401
+ </summary>
402
+
403
+ [Playground](https://www.typescriptlang.org/play/?#code/JYOwLgpgTgZghgYwgAgKoGdrIN4FgBQyyAkMACYBcyIArgLYBG0A3AUcSHHRFemFKADmrQiTiCe1ekygiiAXwJtkCADZx06NJigBBAA7AAytABuwJDmXENATxAJkMCGAQALDNAAUNHQElKKUZoAEoqAAUoAHs6YEwAHk8oAD4rUWJiAHpM5AAxF3dkMDcUXywyODA4J2i6IpLkCqqGDQgAOmssnIAVBsQwGjhVZGA6fVUIbnBK4CiQZFjBNzBkVSiogGtV4A2UYriKTuyVOb5kKAh0fVOUAF5kOAB3OGAV51c3LwAiTLhDTLKUEyABJsICAvIQnISF0TiAzk1qvcLlcbm0AFboOZeKFHHIXAZQeaI6EZAk0Ik4EaBACMABpqFxJF8AFJRNzzAAiUQgXwZ4kkAGYAAzIeSkxSiSXKMC2fQofIfCBkJLIe66Z6vZXxABKLgpIG6cogiR0BmMZgsEAA2l93u4kl8ALrJZIiZR2BxOGgOMCzeZuOAgMgTJKcypwLx-C1QcxIKhJc0mWNWhngwK0YJQEJpdj8Wy5mEIU4rQFURXuZWq+5PF4raPJuPte0eHQ+fxkXHpWG6GCQKBOApuITIQGNCMM2xRGgqIPIeWwKJQOqmOACadafr+rToGiFDSj-RNEfFUo6EbgaDwJB0vGz9wnhqImpRb2Es8QBlLhZwDYjuBkGQrz+kMyC6OEfjnBAACONCXGAm5aCAEDKsqHTpPIs4fMgXjQNE2aFhkxx4d+gbBqoQjWJKChKKIxbwqWZqGI2VpqtQECPNo0BJpaSA4tCZEhhAYYRu23HMbxn7IDSUJAA)
404
+
405
+ ```ts
406
+ interface User {
407
+ id: number;
408
+ name: string;
409
+ age: number;
410
+ }
411
+
412
+ class UserApiService {
413
+ async fetchUser(userId: number): Promise<User> {
414
+ // Fetch the user data from the database.
415
+ // The actual implementation might look like this:
416
+ // const response = await fetch('/api/user/${userId}');
417
+ // const data = response.json();
418
+ // return data;
419
+ return {
420
+ id: 1,
421
+ name: 'John Doe',
422
+ age: 30
423
+ };
424
+ }
425
+ }
426
+
427
+ type FetchedUser = Awaited<ReturnType<UserApiService['fetchUser']>>;
428
+
429
+ async function handleUserData(apiService: UserApiService, userId: number) {
430
+ try {
431
+ const user: FetchedUser = await apiService.fetchUser(userId);
432
+ // After fetching user data, you can perform various actions such as updating the user interface,
433
+ // caching the data for future use, or making additional API requests as needed.
434
+ } catch (error) {
435
+ // Error handling
436
+ }
437
+ }
438
+
439
+ const userApiService = new UserApiService();
440
+ handleUserData(userApiService, 1);
441
+ ```
442
+
395
443
  - [`Partial<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype) - Make all properties in `T` optional.
396
444
  <details>
397
445
  <summary>
@@ -1,4 +1,4 @@
1
- import type {SplitWords} from './split-words';
1
+ import type {Words} from './words';
2
2
 
3
3
  /**
4
4
  CamelCase options.
@@ -76,5 +76,5 @@ const dbResult: CamelCasedProperties<RawOptions> = {
76
76
  export type CamelCase<Type, Options extends CamelCaseOptions = {preserveConsecutiveUppercase: true}> = Type extends string
77
77
  ? string extends Type
78
78
  ? Type
79
- : Uncapitalize<CamelCaseFromArray<SplitWords<Type extends Uppercase<Type> ? Lowercase<Type> : Type>, Options>>
79
+ : Uncapitalize<CamelCaseFromArray<Words<Type extends Uppercase<Type> ? Lowercase<Type> : Type>, Options>>
80
80
  : Type;
@@ -42,7 +42,7 @@ const arrayEntries: Entries<typeof arrayExample> = [[0, 'a'], [1, 1]];
42
42
 
43
43
  // Maps
44
44
  const mapExample = new Map([['a', 1]]);
45
- const mapEntries: Entries<typeof map> = [['a', 1]];
45
+ const mapEntries: Entries<typeof mapExample> = [['a', 1]];
46
46
 
47
47
  // Sets
48
48
  const setExample = new Set(['a', 1]);
package/source/exact.d.ts CHANGED
@@ -53,13 +53,14 @@ onlyAcceptNameImproved(invalidInput); // Compilation error
53
53
  @category Utilities
54
54
  */
55
55
  export type Exact<ParameterType, InputType> =
56
- // If the parameter is a primitive, return it as is immediately to avoid it being converted to a complex type
57
- ParameterType extends Primitive ? ParameterType
58
- // If the parameter is an unknown, return it as is immediately to avoid it being converted to a complex type
59
- : IsUnknown<ParameterType> extends true ? unknown
60
- // If the parameter is a Function, return it as is because this type is not capable of handling function, leave it to TypeScript
61
- : ParameterType extends Function ? ParameterType
62
- : IsEqual<ParameterType, InputType> extends true ? ParameterType
56
+ // Before distributing, check if the two types are equal and if so, return the parameter type immediately
57
+ IsEqual<ParameterType, InputType> extends true ? ParameterType
58
+ // If the parameter is a primitive, return it as is immediately to avoid it being converted to a complex type
59
+ : ParameterType extends Primitive ? ParameterType
60
+ // If the parameter is an unknown, return it as is immediately to avoid it being converted to a complex type
61
+ : IsUnknown<ParameterType> extends true ? unknown
62
+ // If the parameter is a Function, return it as is because this type is not capable of handling function, leave it to TypeScript
63
+ : ParameterType extends Function ? ParameterType
63
64
  // Convert union of array to array of union: A[] & B[] => (A & B)[]
64
65
  : ParameterType extends unknown[] ? Array<Exact<ArrayElement<ParameterType>, ArrayElement<InputType>>>
65
66
  // In TypeScript, Array is a subtype of ReadonlyArray, so always test Array before ReadonlyArray.
package/source/get.d.ts CHANGED
@@ -127,8 +127,20 @@ type PropertyOf<BaseType, Key extends string, Options extends GetOptions = {}> =
127
127
  ? undefined
128
128
  : Key extends keyof BaseType
129
129
  ? StrictPropertyOf<BaseType, Key, Options>
130
- : BaseType extends readonly [] | readonly [unknown, ...unknown[]]
131
- ? unknown // It's a tuple, but `Key` did not extend `keyof BaseType`. So the index is out of bounds.
130
+ // Handle arrays and tuples
131
+ : BaseType extends readonly unknown[]
132
+ ? Key extends `${number}`
133
+ // For arrays with unknown length (regular arrays)
134
+ ? number extends BaseType['length']
135
+ ? Strictify<BaseType[number], Options>
136
+ // For tuples: check if the index is valid
137
+ : Key extends keyof BaseType
138
+ ? Strictify<BaseType[Key & keyof BaseType], Options>
139
+ // Out-of-bounds access for tuples
140
+ : unknown
141
+ // Non-numeric string key for arrays/tuples
142
+ : unknown
143
+ // Handle array-like objects
132
144
  : BaseType extends {
133
145
  [n: number]: infer Item;
134
146
  length: number; // Note: This is needed to avoid being too lax with records types using number keys like `{0: string; 1: boolean}`.
@@ -432,6 +432,13 @@ declare namespace TsConfigJson {
432
432
  */
433
433
  newLine?: CompilerOptions.NewLine;
434
434
 
435
+ /**
436
+ Disable full type checking (only critical parse and emit errors will be reported).
437
+
438
+ @default false
439
+ */
440
+ noCheck?: boolean;
441
+
435
442
  /**
436
443
  Do not emit output.
437
444
 
@@ -15,43 +15,53 @@ Split a string (almost) like Lodash's `_.words()` function.
15
15
 
16
16
  @example
17
17
  ```
18
- type Words0 = SplitWords<'helloWorld'>; // ['hello', 'World']
19
- type Words1 = SplitWords<'helloWORLD'>; // ['hello', 'WORLD']
20
- type Words2 = SplitWords<'hello-world'>; // ['hello', 'world']
21
- type Words3 = SplitWords<'--hello the_world'>; // ['hello', 'the', 'world']
22
- type Words4 = SplitWords<'lifeIs42'>; // ['life', 'Is', '42']
18
+ import type {Words} from 'type-fest';
19
+
20
+ type Words0 = Words<'helloWorld'>;
21
+ //=> ['hello', 'World']
22
+
23
+ type Words1 = Words<'helloWORLD'>;
24
+ //=> ['hello', 'WORLD']
25
+
26
+ type Words2 = Words<'hello-world'>;
27
+ //=> ['hello', 'world']
28
+
29
+ type Words3 = Words<'--hello the_world'>;
30
+ //=> ['hello', 'the', 'world']
31
+
32
+ type Words4 = Words<'lifeIs42'>;
33
+ //=> ['life', 'Is', '42']
23
34
  ```
24
35
 
25
- @internal
26
36
  @category Change case
27
37
  @category Template literal
28
38
  */
29
- export type SplitWords<
39
+ export type Words<
30
40
  Sentence extends string,
31
41
  LastCharacter extends string = '',
32
42
  CurrentWord extends string = '',
33
43
  > = Sentence extends `${infer FirstCharacter}${infer RemainingCharacters}`
34
44
  ? FirstCharacter extends WordSeparators
35
45
  // Skip word separator
36
- ? [...SkipEmptyWord<CurrentWord>, ...SplitWords<RemainingCharacters>]
46
+ ? [...SkipEmptyWord<CurrentWord>, ...Words<RemainingCharacters>]
37
47
  : LastCharacter extends ''
38
48
  // Fist char of word
39
- ? SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>
49
+ ? Words<RemainingCharacters, FirstCharacter, FirstCharacter>
40
50
  // Case change: non-numeric to numeric, push word
41
51
  : [false, true] extends [IsNumeric<LastCharacter>, IsNumeric<FirstCharacter>]
42
- ? [...SkipEmptyWord<CurrentWord>, ...SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>]
52
+ ? [...SkipEmptyWord<CurrentWord>, ...Words<RemainingCharacters, FirstCharacter, FirstCharacter>]
43
53
  // Case change: numeric to non-numeric, push word
44
54
  : [true, false] extends [IsNumeric<LastCharacter>, IsNumeric<FirstCharacter>]
45
- ? [...SkipEmptyWord<CurrentWord>, ...SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>]
55
+ ? [...SkipEmptyWord<CurrentWord>, ...Words<RemainingCharacters, FirstCharacter, FirstCharacter>]
46
56
  // No case change: concat word
47
57
  : [true, true] extends [IsNumeric<LastCharacter>, IsNumeric<FirstCharacter>]
48
- ? SplitWords<RemainingCharacters, FirstCharacter, `${CurrentWord}${FirstCharacter}`>
58
+ ? Words<RemainingCharacters, FirstCharacter, `${CurrentWord}${FirstCharacter}`>
49
59
  // Case change: lower to upper, push word
50
60
  : [true, true] extends [IsLowerCase<LastCharacter>, IsUpperCase<FirstCharacter>]
51
- ? [...SkipEmptyWord<CurrentWord>, ...SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>]
61
+ ? [...SkipEmptyWord<CurrentWord>, ...Words<RemainingCharacters, FirstCharacter, FirstCharacter>]
52
62
  // Case change: upper to lower, brings back the last character, push word
53
63
  : [true, true] extends [IsUpperCase<LastCharacter>, IsLowerCase<FirstCharacter>]
54
- ? [...RemoveLastCharacter<CurrentWord, LastCharacter>, ...SplitWords<RemainingCharacters, FirstCharacter, `${LastCharacter}${FirstCharacter}`>]
64
+ ? [...RemoveLastCharacter<CurrentWord, LastCharacter>, ...Words<RemainingCharacters, FirstCharacter, `${LastCharacter}${FirstCharacter}`>]
55
65
  // No case change: concat word
56
- : SplitWords<RemainingCharacters, FirstCharacter, `${CurrentWord}${FirstCharacter}`>
66
+ : Words<RemainingCharacters, FirstCharacter, `${CurrentWord}${FirstCharacter}`>
57
67
  : [...SkipEmptyWord<CurrentWord>];