For ?, provide two code fixes, one for jsdoc/closure semantics (`?t -> t | null)` and one for flow semantics (`?t -> t | null | undefined`). The current way of doing this is the hackiest thing you can imagine, but it was easier than lifting everything into the list monad for a code fix that I might not actually keep.
5 lines
105 B
TypeScript
5 lines
105 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
//// var x: [|!number|] = 12;
|
|
|
|
verify.rangeAfterCodeFix("number");
|