cursorless
cursorless copied to clipboard
Investigate why partial type definition being coalesced to non partial isn't a TypeScript compiler
NTS: The actual type of the interface is requirements?: Partial<ScopeIteratorRequirements>. This should really be a tsc compile error but it wasn't. We therefore started to read properties on hints when some of those properties could be undefined which threw an exception
Originally posted by @phillco in https://github.com/cursorless-dev/cursorless/pull/2739#discussion_r1924122919
Just flagging for passive followup later
I created the smallest possible example. No warnings from typescript.
https://github.com/cursorless-dev/cursorless/pull/2745