From 7744edfabc19c5ff262b6ca1dda0a7f5921c4a14 Mon Sep 17 00:00:00 2001 From: Bryan Huang Date: Thu, 31 Jan 2019 15:09:50 +0800 Subject: [PATCH] Fixed Autodesk.Viewing.Load optional arguments --- types/forge-viewer/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/forge-viewer/index.d.ts b/types/forge-viewer/index.d.ts index 32cd3c8a90..95f81d1b04 100644 --- a/types/forge-viewer/index.d.ts +++ b/types/forge-viewer/index.d.ts @@ -353,7 +353,7 @@ declare namespace Autodesk { class Document { constructor(dataJSON: object, path: string, acmsession: string); static load(documentId: string, successCallback: (doc: Document) => void, - errorCallback: (errorCode: ErrorCodes, errorMsg: string, messages: any[]) => void, accessControlProperties: any): void; + errorCallback: (errorCode: ErrorCodes, errorMsg: string, messages: any[]) => void, accessControlProperties?: any): void; static getSubItemsWithProperties(item: object, properties: Properties, recursive: boolean): object[]; acmSessionId: string; @@ -373,7 +373,7 @@ declare namespace Autodesk { getViewableItems(document: Document): void; getViewablePath(item: object, outLoadOptions: object): string; getViewGeometry(item: object): object; - load(documentId: string, onSuccessCallback: () => void, onErrorCallback: () => void, accessControlProperties: object): void; + load(documentId: string, onSuccessCallback: () => void, onErrorCallback: () => void, accessControlProperties?: object): void; requestThumbnailWithSecurity(data: string, onComplete: (err: Error, response: any) => void): void; }