microsoft / dtslint

A utility built on TSLint for linting TypeScript declaration (.d.ts) files.
MIT License
925 stars 86 forks source link

$ExpectType ignoring namespace in TS4.7 #352

Open AlCalzone opened 2 years ago

AlCalzone commented 2 years ago

I'm working on the type definitions for https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/iobroker and while doing so, I'm stumbling over a check error where dtslint with TS4.7 seems to ignore the namespace of a type:

ERROR: 332:5  expect  TypeScript@4.7 expected type to be:
  ioBroker.Object | null
got:
  Object | null
ERROR: 336:5  expect  TypeScript@4.7 expected type to be:
  ioBroker.Object | null
got:
  Object | null

All other tested TS version seem to work fine. Even IntelliSense on TS4.7 shows the correct type: grafik