Skip to content

Commit

Permalink
Merge pull request #149 from ahrjarrett/@ahrjarrett/v0.45.1
Browse files Browse the repository at this point in the history
@ahrjarrett/v0.45.1
  • Loading branch information
ahrjarrett authored Jun 4, 2024
2 parents a8a5293 + d10ee8c commit 7c33cd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/green-lions-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"any-ts": patch
---

fix: ensure `string.intercalate` produces a string result
2 changes: 1 addition & 1 deletion src/string/_internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ type intercalate<
delimiter extends any.showable = empty.string
> = lines extends empty.array ? acc
: lines extends nonempty.arrayOf<any.showable, infer head, infer tail>
? intercalate<acc extends `` ? head : `${acc}${delimiter}${head}`, tail, delimiter>
? intercalate<acc extends `` ? `${head}` : `${acc}${delimiter}${head}`, tail, delimiter>
: never.close.inline_var<"head" | "tail">
;

Expand Down

0 comments on commit 7c33cd6

Please sign in to comment.