(oref: string)
| 65 | } |
| 66 | |
| 67 | function GetObject<T>(oref: string): Promise<T> { |
| 68 | if (isPreviewWindow()) { |
| 69 | return Promise.resolve((previewMockObjects.get(oref) as T) ?? null); |
| 70 | } |
| 71 | return callBackendService("object", "GetObject", [oref], true); |
| 72 | } |
| 73 | |
| 74 | function debugLogBackendCall(methodName: string, durationStr: string, args: any[]) { |
| 75 | durationStr = "| " + durationStr; |
no test coverage detected