Ryan Cavanaugh

Results 457 comments of Ryan Cavanaugh

@weswigham @ahejlsberg I remember from prior conversations that this approach is maybe not *quite* right (due to CFA in function bodies?), but I wasn't able to craft a demonstration of...

This is a very odd situation; types do not normally come *back* into DT. @marijnh is this PR what you were intending to happen?

My prior review stands; a tuple containing a nonoptional `never` element doesn't make sense.

Right, the Playground link shows why this code is wrong. You can't legally call this function with an error value: ```ts const testB = (b: FlatryB) => { const [err,...

The kind of narrowing you'd need here isn't supported by TypeScript yet. The code *also* claims to return `string` even without the check: ```ts // Marked as returning string, but...

Please give *concrete* expected / actual behaviors. I can't know what you expect to happen, or why, based on these descriptions.

The error is exactly describing the situation that's happening. You can write ```ts import type { x } from './foo'; const x = 7 export { x }; ```

Apart from pure startup time, there's not anything meaningful that can be reused between two subsequent project builds. It might actually be worse from a total time perspective because of...