Skip to content

Commit 367dce1

Browse files
fix: correct reversed types in 03-split-on
1 parent 91ecf26 commit 367dce1

File tree

1 file changed

+0
-6
lines changed
  • projects/type-operations/template-literal-type-shenanigans/03-split-on

1 file changed

+0
-6
lines changed

projects/type-operations/template-literal-type-shenanigans/03-split-on/solution.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,3 @@ export type SplitOn<
55
> = Text extends `${infer Prefix}${On}${infer Suffix}`
66
? SplitOn<Suffix, On, [...Results, Prefix]>
77
: [...Results, Text];
8-
9-
type Wat1 = SplitOn<"baby", "a">;
10-
// ^?
11-
12-
type Wat2 = SplitOn<"hello my baby", " ">;
13-
// ^?

0 commit comments

Comments
 (0)