Skip to content

Commit

Permalink
Merge pull request #128 from ahrjarrett/@ahrjarrett/v0.43.4
Browse files Browse the repository at this point in the history
v0.43.4
  • Loading branch information
ahrjarrett authored May 19, 2024
2 parents cb9aedf + 8c4fcc5 commit 1c2ce9f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .changeset/ten-waves-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"any-ts": patch
---

feat: adds
- [`mut.strings`](242b529)
- [`mut.numbers`](242b529)
- [`mut.booleans`](242b529)
- [`mut.literals`](7c8c41b)
- [`mut.primitives`](7c8c41b)
16 changes: 16 additions & 0 deletions src/mutable/mutable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ declare namespace mut {
pathOf as pathof,
/** {@link pathOf `mut.pathOf`} */
pathOf,
/** {@link strings `mut.strings`} */
strings,
/** {@link numbers `mut.numbers`} */
numbers,
/** {@link booleans `mut.booleans`} */
booleans,
/** {@link primitives `mut.primitives`} */
primitives,
/** {@link literals `mut.literals`} */
literals,
}

type array<type = unknown> = type[]
Expand All @@ -70,6 +80,12 @@ declare namespace mut {
type three<fst = _, snd = _, trd = _> = [_1: fst, _2: snd, _3: trd]
type four<fst = _, snd = _, trd = _, fth = _> = [_1: fst, _2: snd, _3: trd, _4: fth]

type strings<type extends mut.array<string> = mut.array<string>> = type
type numbers<type extends mut.array<number> = mut.array<number>> = type
type booleans<type extends mut.array<boolean> = mut.array<boolean>> = type
type primitives<type extends mut.array<any.primitive> = mut.array<any.primitive>> = type
type literals<type extends mut.array<any.literal> = mut.array<any.literal>> = type

type field<k extends any.index = any.index, v = _> = [key: k, value: v]

type arrayOf<
Expand Down

0 comments on commit 1c2ce9f

Please sign in to comment.