DefinitelyTyped/types/office-runtime/office-runtime-tests.ts
Michelle Scharlock 686417f19f Updates to office-runtime package (#35128)
* cf updates

* fix whitespace errs

* fixes

* project name update?

* marking as non-npm

* remove all mention of AsyncStorage
2019-05-02 17:03:26 -07:00

26 lines
600 B
TypeScript

/*
office-runtime
Copyright (c) Microsoft Corporation
*/
OfficeRuntime.storage.getItem("foo");
OfficeRuntime.storage.getItems(["foo", "bar"]);
OfficeRuntime.storage.setItem("foo", "bar");
OfficeRuntime.storage.setItems({ foo: "value1", bar: "value2"});
OfficeRuntime.storage.removeItem("foo");
OfficeRuntime.storage.removeItems(["foo", "bar"]);
OfficeRuntime.storage.getKeys();
OfficeRuntime.displayWebDialog("https://localhost:3000", {
displayInIFrame: false
});
OfficeRuntime.displayWebDialog("https://localhost:3000", {
onClose: () => {
console.log("closed");
}
});