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
Can we add an API for generating declare modules?
My code now:
const sourceFile = project.createSourceFile(/*...*/) // some code... sourceFile.insertText( sourceFile.getEnd(), ` declare global { declare const __DEV__: boolean; declare const __EDITOR__: boolean; declare const PW: PW; interface Window { require: (name: string) => unknown; PW: PW; } } ` );
My preferred usage:
const dm = sourceFile.addGlobalDeclare({ // more options })
If the idea is deemed viable, I would happily pull a request.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Can we add an API for generating declare modules?
My code now:
My preferred usage:
If the idea is deemed viable, I would happily pull a request.
The text was updated successfully, but these errors were encountered: