Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

$ExpectType ignoring namespace in TS4.7 #352

Open
AlCalzone opened this issue Feb 20, 2022 · 0 comments
Open

$ExpectType ignoring namespace in TS4.7 #352

AlCalzone opened this issue Feb 20, 2022 · 0 comments

Comments

@AlCalzone
Copy link

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  [email protected] expected type to be:
  ioBroker.Object | null
got:
  Object | null
ERROR: 336:5  expect  [email protected] 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant