-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Emit types #442
Emit types #442
Conversation
I hunted down the However, the only thing in the monorepo that depends on
I fixed it by following its suggestion to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these look like good fixes to me. thanks!
Man, I could have sworn I tried both those things! Though my globs looked more like |
@@ -1,7 +1,7 @@ | |||
/** @type {import('./router').Router} */ | |||
/** @type {any} */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change this from Router
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the comment still exists once these files have been bundled, but no longer points at anything. If TypeScript were to check that file, because of whatever configuration, it would get confused. Changing it to any
doesn't actually impede us in any way, and doesn't affect users because Router
and Renderer
are a hidden implementation detail
So far just
app-utils
. This fails in weird ways. If running for the first time, this happens:I have no idea what's going on —
form-data
andnode-fetch
aren't referenced anywhere insideapp-utils
. If I runtsc --listFiles
andtsc --traceResolution
it goes berserk. I have no idea what it thinks it's trying to do.Run it a second time, and this happens:
I can't figure out how to tell it 'these are files YOU created, you utter dolt, it's okay to overwrite them'. Any tips?