tslint-consistent-codestyle icon indicating copy to clipboard operation
tslint-consistent-codestyle copied to clipboard

no-unnecessary-type-annotation: false positive with [email protected]

Open ajafff opened this issue 7 years ago • 0 comments
trafficstars

const map: Map<string, string> = new Map();

// could be rewritten as
const map = new Map<string, string>();

// but consider a scenario with type aliases
type DisableMap = Map<string, Array<{pos: number, end: number}>>;
const map: DisableMap = new Map();

ajafff avatar Jul 09 '18 07:07 ajafff