Remove any

This commit is contained in:
Matt Bierner
2020-05-28 21:10:30 -07:00
parent 1c11df44c0
commit 5b3fc0a2ff

View File

@ -219,9 +219,9 @@ export class PawDrawEditorProvider implements vscode.CustomEditorProvider<PawDra
openContext: { backupId?: string },
_token: vscode.CancellationToken
): Promise<PawDrawDocument> {
const document = await PawDrawDocument.create(uri, openContext.backupId, {
const document: PawDrawDocument = await PawDrawDocument.create(uri, openContext.backupId, {
getFileData: async () => {
const webviewsForDocument: any = Array.from(this.webviews.get(document.uri));
const webviewsForDocument = Array.from(this.webviews.get(document.uri));
if (!webviewsForDocument.length) {
throw new Error('Could not find webview to save for');
}