Skip to content

Commit

Permalink
Enable strictFunctionTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Dec 27, 2021
1 parent 1e835b5 commit 73930b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/jupyterlab-lsp/src/features/diagnostics/listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class DiagnosticsDatabase extends Map<
IEditorDiagnostic[]
> {
get all(): Array<IEditorDiagnostic> {
return [].concat.apply([], this.values());
return [].concat.apply([], this.values() as any);
}
}

Expand Down Expand Up @@ -316,7 +316,10 @@ export class DiagnosticsListing extends VDomRenderer<DiagnosticsListing.Model> {
});
}
);
let flattened: IDiagnosticsRow[] = [].concat.apply([], by_document);
let flattened: IDiagnosticsRow[] = ([] as IDiagnosticsRow[]).concat.apply(
[],
by_document
);
this._diagnostics = new Map(flattened.map(row => [row.key, row]));

let sorted_column = this.columns.filter(
Expand Down
1 change: 1 addition & 0 deletions packages/tsconfigbase.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"skipLibCheck": true,
"strictNullChecks": true,
"noImplicitThis": true,
"strictBindCallApply": true,
"types": []
}
}

0 comments on commit 73930b3

Please sign in to comment.