tsdjs / tsd

Check TypeScript type definitions
MIT License
2.38k stars 68 forks source link

TypeScript 4.4 support #123

Closed younho9 closed 2 years ago

younho9 commented 2 years ago

Could I request upgrade TypeScript compiler v4.4.2?

Currently tsd can't recognize symbol pattern index signature, but tsc can.

// An index signature parameter type must be either string or number.
expectType<{ 
    [x: symbol]: string
  }>({
    [Symbol('one')]: 'one',
    [Symbol('two')]: 'two',
    [Symbol('three')]: 'three',
  });

Also is there any update on this issue? https://github.com/SamVerschueren/tsd/issues/47

sindresorhus commented 2 years ago

Fixed by #124