Skip to content

Conversation

@JoshuaKGoldberg
Copy link
Contributor

PR Checklist

Overview

Tested with:

type Test1 = SplitOn<"baby", "a">;
//   ^? type Test1 = ["b", "by"]

type Test2 = SplitOn<"hello my baby", " ">;
//   ^? type Test2 = ["hello", "my", "baby"]

💖

@JoshuaKGoldberg JoshuaKGoldberg merged commit bdb7913 into main May 9, 2025
7 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the types-split-on-reverse branch May 9, 2025 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Bug: [type-operations/template-literal-type-shenanigans/03-split-on] Incorrect logic in solution

2 participants