We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moduleResolution
node16
nodenext
When this package is used with TypeScript with moduleResolution set to node16 or nodenext, the following error will appear:
This expression is not callable. Type 'typeof import("file:///node_modules/tiny-warning/src/index")' has no call signatures.
Minimal reproduction:
https://www.typescriptlang.org/play?target=99&moduleResolution=99&module=100&jsx=0#code/JYWwDg9gTgLgBAdwIZQHbFQczgMyhEOAchgwE8BaZNDTIgbgChHr0sAKHJAGwGcBTADTEA8gAs4qCEQCU9IA
This is further confirmed by Are The Types Wrong: https://arethetypeswrong.github.io/?p=tiny-warning%401.0.3
Interestingly, tiny-invariant does not have this issue. https://arethetypeswrong.github.io/?p=tiny-invariant%401.3.1
The text was updated successfully, but these errors were encountered:
I simply migrated to warning. Despite not having "tiny" in its name, it's actually as tiny as tiny-warning, but has correct types.
warning
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When this package is used with TypeScript with
moduleResolution
set tonode16
ornodenext
, the following error will appear:Minimal reproduction:
https://www.typescriptlang.org/play?target=99&moduleResolution=99&module=100&jsx=0#code/JYWwDg9gTgLgBAdwIZQHbFQczgMyhEOAchgwE8BaZNDTIgbgChHr0sAKHJAGwGcBTADTEA8gAs4qCEQCU9IA
This is further confirmed by Are The Types Wrong:
https://arethetypeswrong.github.io/?p=tiny-warning%401.0.3
Interestingly, tiny-invariant does not have this issue.
https://arethetypeswrong.github.io/?p=tiny-invariant%401.3.1
The text was updated successfully, but these errors were encountered: