Strict function work

#81574
This commit is contained in:
Matt Bierner
2019-11-22 14:56:35 -08:00
parent 028e009ea2
commit 2d0b37f031
6 changed files with 9 additions and 9 deletions

View File

@@ -377,7 +377,7 @@ class EditorContributionRegistry {
}
public registerEditorContribution<Services extends BrandedService[]>(id: string, ctor: { new(editor: ICodeEditor, ...services: Services): IEditorContribution }): void {
this.editorContributions.push({ id, ctor });
this.editorContributions.push({ id, ctor: ctor as IEditorContributionCtor });
}
public getEditorContributions(): IEditorContributionDescription[] {
@@ -385,7 +385,7 @@ class EditorContributionRegistry {
}
public registerDiffEditorContribution<Services extends BrandedService[]>(id: string, ctor: { new(editor: IDiffEditor, ...services: Services): IEditorContribution }): void {
this.diffEditorContributions.push({ id, ctor });
this.diffEditorContributions.push({ id, ctor: ctor as IDiffEditorContributionCtor });
}
public getDiffEditorContributions(): IDiffEditorContributionDescription[] {