tslint-consistent-codestyle
tslint-consistent-codestyle copied to clipboard
no-unnecessary-type-annotation: false positive with [email protected]
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();