Skip to content

Commit e3d92ca

Browse files
authored
[office-js-preview] (Office) Add onReadyOptions API (DefinitelyTyped#74911)
1 parent d23b3ba commit e3d92ca

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

types/office-js-preview/index.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9291,6 +9291,17 @@ declare namespace Office {
92919291
*/
92929292
javascriptRuntimeUrl: string;
92939293
}
9294+
/**
9295+
* Provides options related to the `onReady` event.
9296+
*
9297+
* @beta
9298+
*/
9299+
interface OnReadyOptions {
9300+
/**
9301+
* Enables the behavior that allows the `onReady` promise to be rejected.
9302+
*/
9303+
setRejectionEnabled?: () => void;
9304+
}
92949305
/**
92959306
* Message used in the `onVisibilityModeChanged` invocation.
92969307
*/

0 commit comments

Comments
 (0)