Skip to content

Commit

Permalink
feat(types): [Lib] add ES2022.Array
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Feb 6, 2023
1 parent d386e2f commit a74ba20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/types/__tests__/lib.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ describe('unit:types/Lib', () => {
expectTypeOf<TestSubject>().extract<'ES2021'>().toBeString()
})

it('should extract "ES2022.Array"', () => {
expectTypeOf<TestSubject>().extract<'ES2022.Array'>().toBeString()
})

it('should extract "ESNext.Array"', () => {
expectTypeOf<TestSubject>().extract<'ESNext.Array'>().toBeString()
})
Expand Down Expand Up @@ -532,6 +536,10 @@ describe('unit:types/Lib', () => {
expectTypeOf<TestSubject>().extract<'es2021'>().toBeString()
})

it('should extract "es2022.array"', () => {
expectTypeOf<TestSubject>().extract<'es2022.array'>().toBeString()
})

it('should extract "esnext.array"', () => {
expectTypeOf<TestSubject>().extract<'esnext.array'>().toBeString()
})
Expand Down
1 change: 1 addition & 0 deletions src/types/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type Lib = OrLowercase<
| 'ES2021.String'
| 'ES2021.WeakRef'
| 'ES2021'
| 'ES2022.Array'
| 'ESNext.Array'
| 'ESNext.AsyncIterable'
| 'ESNext.BigInt'
Expand Down

0 comments on commit a74ba20

Please sign in to comment.