TypeStat
TypeStat copied to clipboard
Add a strictNullCheck fixer for indexed keys/values
const other: IStringDictionary<string> = {
A: null
};
This should become A: null! or IStringDictionary<string | undefined>, depending on #41.
Also relevant:
const maybeKey: string | undefined = // ...
other[maybeKey];