Prefer using Array<T> for complex array types

Use `Array<T | U>` when dealing with union types instead of  `(T | U)[]`
This commit is contained in:
Matt Bierner
2018-12-13 16:13:17 -08:00
parent 9623b3441d
commit 986f924ad5
83 changed files with 159 additions and 159 deletions

View File

@@ -178,7 +178,7 @@ export class ExtHostDebugService implements ExtHostDebugServiceShape {
this.fireBreakpointChanges(breakpoints, [], []);
// convert added breakpoints to DTOs
const dtos: (ISourceMultiBreakpointDto | IFunctionBreakpointDto)[] = [];
const dtos: Array<ISourceMultiBreakpointDto | IFunctionBreakpointDto> = [];
const map = new Map<string, ISourceMultiBreakpointDto>();
for (const bp of breakpoints) {
if (bp instanceof SourceBreakpoint) {