Skip to content
New issue

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

Allow use of type without import (namespace) #784

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simusr2
Copy link

@simusr2 simusr2 commented Dec 11, 2021

Types not working when in destination project use of import are not required.
If I use imports in my project Typescript compiler generate "__esmodule" lines and this cause errors because undeclare variables.
With adding export as namespace typescript with some tsconfig.json configurations types are recognized without use of import.
I create a sample project, where I edited filepond's type file to test this edit.
https://github.com/simusr2/TestTypeScript

@rikschennink
Copy link
Collaborator

Thanks, not sure I'm familiar with this issue, if anyone else can chime in?

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

Successfully merging this pull request may close these issues.

2 participants