Uh oh!
There was an error while loading. Please reload this page.
Skip typechecking file when generating declaraiton to get d.ts signature for incremental build - #58592
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sheetal Nandi (sheetalkamat)
commented
May 20, 2024
Wesley Wigham (@weswigham) i tried passing noCheck equivalent when running emit for dts emit and i see few tests failing. i have commented on each but if you can take a look and see what we can do for those scenarios that would be great. Thanks |
…n resolve types etc without type checking
Jake Bailey (jakebailey)
commented
May 20, 2024
TypeScript Bot (@typescript-bot) perf test this faster |
Uh oh!
There was an error while loading. Please reload this page.
516c734 to
5cc1ea4CompareTypeScript Bot (typescript-bot)
commented
May 20, 2024
Jake Bailey (@jakebailey) Here they are:tscComparison Report - baseline..pr
System info unknown Hosts
Scenarios
Developer Information: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Jake Bailey (jakebailey)
commented
May 21, 2024
Is this the winning PR or is #58593 still something to consider? Just checking before I review... |
Wesley Wigham (weswigham)
left a comment
There was a problem hiding this comment.
Is this the winning PR or is #58593 still something to consider? Just checking before I review...
They don't appear mutually exclusive to my eye. This one skips the diagnostic pass when calculating signatures. The other skips it when a //@ts-nocheck comment is in a file.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Wesley Wigham (weswigham)
left a comment
There was a problem hiding this comment.
Oh, one caveat though - #58364 isn't in yet, so JS emit is unsafe when you skip diagnostics like this. Is an emit resolver with forceDtsEmit set guaranteed to be only emitting .d.ts files?
Jake Bailey (jakebailey)
commented
May 21, 2024
I don't think that it is guaranteed; I almost made the playground always set forceDtsEmit because it always needs to show it (playground used to crash on dts errors), though I think I actually made it conditional in the current version. |
Sheetal Nandi (sheetalkamat)
commented
May 21, 2024
Yes it is guaranteed to be dts only emit as "forceDtsEmit" is internal on program.emit and used only by builder |
Jake Bailey (jakebailey)
commented
May 21, 2024
Isn't it public via |
Sheetal Nandi (sheetalkamat)
commented
May 21, 2024
LS.. compile on save.. forgot about that. :( i will upate the condition for now to check if its emitOnlyDts and forceDtsEmit to be true which we can later update in #58364 to remove emitOnlyDts part. |
…it to be done without type checking
Uh oh!
There was an error while loading. Please reload this page.