Fix lint failure (#21073)

This commit is contained in:
Andy 2018-01-08 11:25:06 -08:00 committed by GitHub
parent c6443f02af
commit 1b2dc828d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3777,7 +3777,7 @@ namespace FourSlashInterface {
public eachMarker(markers: ReadonlyArray<string>, action: (marker: FourSlash.Marker, index: number) => void): void;
public eachMarker(action: (marker: FourSlash.Marker, index: number) => void): void;
public eachMarker(a: ReadonlyArray<string> | ((marker: FourSlash.Marker, index: number) => void), b?: (marker: FourSlash.Marker, index: number) => void): void {
public eachMarker(a: ReadonlyArray<string> | ((marker: FourSlash.Marker, index: number) => void), b?: (marker: FourSlash.Marker, index: number) => void): void {
const markers = typeof a === "function" ? this.state.getMarkers() : a.map(m => this.state.getMarkerByName(m));
this.state.goToEachMarker(markers, typeof a === "function" ? a : b);
}