Skip to content

Commit

Permalink
feat(types): [Lib] add ES2017.Full
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 6b12f41 commit 95ede7f
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 @@ -93,6 +93,10 @@ describe('unit:types/Lib', () => {
expectTypeOf<TestSubject>().extract<'ES2016'>().toBeString()
})

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

it('should extract "ES2017.Intl"', () => {
expectTypeOf<TestSubject>().extract<'ES2017.Intl'>().toBeString()
})
Expand Down Expand Up @@ -344,6 +348,10 @@ describe('unit:types/Lib', () => {
expectTypeOf<TestSubject>().extract<'es2016'>().toBeString()
})

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

it('should extract "es2017.intl"', () => {
expectTypeOf<TestSubject>().extract<'es2017.intl'>().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 @@ -31,6 +31,7 @@ type Lib = OrLowercase<
| 'ES2016.Array.Include'
| 'ES2016.Full'
| 'ES2016'
| 'ES2017.Full'
| 'ES2017.Intl'
| 'ES2017.Object'
| 'ES2017.SharedMemory'
Expand Down

0 comments on commit 95ede7f

Please sign in to comment.