mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* cf updates * fix whitespace errs * fixes * project name update? * marking as non-npm * remove all mention of AsyncStorage
26 lines
600 B
TypeScript
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");
|
|
}
|
|
});
|