Skip to content

Commit 831153d

Browse files
authored
[office-js, office-js-preview] Add note that Office.isSetSupported doesn't work (DefinitelyTyped#73990)
1 parent 7feecad commit 831153d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ declare namespace Office {
288288
*/
289289
function initialize(reason: InitializationReason): void;
290290
/**
291+
* **WARNING**: This API returns inaccurate values when used on desktop applications. Use `Office.context.requirements.isSetSupported` instead.
292+
*
291293
* Checks if the specified requirement set is supported by the Office application.
292294
* @param name - Set name; e.g., "MatrixBindings".
293295
* @param minVersion - The minimum required version; e.g., "1.4".

types/office-js/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ declare namespace Office {
288288
*/
289289
function initialize(reason: InitializationReason): void;
290290
/**
291+
* **WARNING**: This API returns inaccurate values when used on desktop applications. Use `Office.context.requirements.isSetSupported` instead.
292+
*
291293
* Checks if the specified requirement set is supported by the Office application.
292294
* @param name - Set name; e.g., "MatrixBindings".
293295
* @param minVersion - The minimum required version; e.g., "1.4".

0 commit comments

Comments
 (0)