feat(returnTypeOf): Support template and upper bound types
Also changed the notation for an upper bound template to the more readable 'T:number' (instead of 'T (= number', which was supposed to look like the non-strict subset relation).
This commit is contained in:
parent
f7bb3697ed
commit
775bb9ddb7
12 changed files with 170 additions and 53 deletions
8
test/core/_utils.mjs
Normal file
8
test/core/_utils.mjs
Normal file
|
@ -0,0 +1,8 @@
|
|||
import assert from 'assert'
|
||||
import * as utils from '../../src/core/utils.mjs'
|
||||
|
||||
describe('typeListOfSignature', () => {
|
||||
it('returns an empty list for the empty signature', () => {
|
||||
assert.deepStrictEqual(utils.typeListOfSignature(''), [])
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue