From 664c623c087367d0bf0422ae90b6380cfdfe7606 Mon Sep 17 00:00:00 2001 From: mscharlock Date: Fri, 14 Sep 2018 10:17:53 -0700 Subject: [PATCH] deleting officeruntime so I can recreate it properly --- types/office-runtime/office-runtime-tests.ts | 71 -------------------- 1 file changed, 71 deletions(-) delete mode 100644 types/office-runtime/office-runtime-tests.ts diff --git a/types/office-runtime/office-runtime-tests.ts b/types/office-runtime/office-runtime-tests.ts deleted file mode 100644 index 910a8494b2..0000000000 --- a/types/office-runtime/office-runtime-tests.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* -office-runtime -Copyright (c) Microsoft Corporation -*/ - -OfficeRuntime.AsyncStorage.getItem("foo", () => { - //perform an action -}) -OfficeRuntime.AsyncStorage.getItem("foo").then(value => console.log(value)) - -OfficeRuntime.AsyncStorage.setItem("foo", "bar"); -OfficeRuntime.AsyncStorage.setItem("foo", "bar").then(error => console.log(error)) - -OfficeRuntime.AsyncStorage.removeItem("foo"); -OfficeRuntime.AsyncStorage.removeItem("foo", () => { - //perform an action -}) - -OfficeRuntime.AsyncStorage.clear(); -OfficeRuntime.AsyncStorage.clear(() => { - //perform an action -}) - -OfficeRuntime.AsyncStorage.getAllKeys().then(keys => { - keys.forEach(item => console.log(item)); -}) -OfficeRuntime.AsyncStorage.getAllKeys((error, keys) => { - if (error) { - console.error(error); - } else { - keys.forEach(item => console.log(item)); - } -}) - -OfficeRuntime.AsyncStorage.multiSet( - [["username", "foo"], ["yearOfBirth", "2001"]], - errors => { - errors.filter(error => error != null).forEach(error => console.log(error)); - } -) - -OfficeRuntime.AsyncStorage.multiRemove(["foo", "bar"]); -OfficeRuntime.AsyncStorage.multiRemove(["foo", "bar"]).then(value => console.log(value)) - -OfficeRuntime.AsyncStorage.multiGet(["username", "yearOfBirth"]).then( - values => { - console.log(values[0][1]) - console.log(values[1][1]) - } -) - - -OfficeRuntime.displayWebDialog("https://localhost:3000", { - height: '50', - width: '50%', - displayInIFrame: false -}) - - -OfficeRuntime.displayWebDialog("https://localhost:3000", { - onClose: () => { - console.log("closed"); - } -}) - -OfficeRuntime.displayWebDialog("https://localhost:3000", { - onRuntimeError: (error, dialog) => { - console.log(error); - dialog.close(); - } -})