From 3df8530ecd1088a1fa36b0af7035862a49775838 Mon Sep 17 00:00:00 2001 From: Sam Ramon <15154970+samantharamon@users.noreply.github.com> Date: Fri, 29 May 2026 13:35:15 -0700 Subject: [PATCH] [office-js][office-js-preview] (all hosts) Document version format returned in Office on Windows (#75057) --- types/office-js-preview/index.d.ts | 5 +++++ types/office-js/index.d.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 6f922b01c83ac8..7da13628f6d3ef 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -4881,6 +4881,11 @@ declare namespace Office { platform: Office.PlatformType; /** * Gets the version of Office on which the add-in is running. + * + * @remarks + * In Office on Windows, the value returned by the `version` property uses the format 16.0.\.\. + * To compare a version shown as Version xxxx (Build xxxxx.xxxxx) with the `version` value, use the full build number (\.\). + * For example, in Version 2603 (Build 19822.20000), use 19822.20000 for comparison. */ version: string; } diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 56f5836b14f076..611cd1edbdb55f 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -4881,6 +4881,11 @@ declare namespace Office { platform: Office.PlatformType; /** * Gets the version of Office on which the add-in is running. + * + * @remarks + * In Office on Windows, the value returned by the `version` property uses the format 16.0.\.\. + * To compare a version shown as Version xxxx (Build xxxxx.xxxxx) with the `version` value, use the full build number (\.\). + * For example, in Version 2603 (Build 19822.20000), use 19822.20000 for comparison. */ version: string; }