From 9e7369bd7c135e174c46e77af98c47bec42b4666 Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Fri, 17 Oct 2025 09:56:31 -0700 Subject: [PATCH] [office-js-preview] (Word) Updates from CDN (#73918) --- types/office-js-preview/index.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 53d312798ef4c9..c45b2327febff6 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -148265,6 +148265,18 @@ declare namespace Word { context: RequestContext; /** Gets the loaded child items in this collection. */ readonly items: Word.Bookmark[]; + /** + * Returns a `Bookmark` object that represents a bookmark added to a range. + * + * @remarks + * [Api set: WordApi BETA (PREVIEW ONLY)] + * @beta + * + * @param name The name of the bookmark. The name cannot be more than 40 characters or include more than one word. Also, the name must begin with a letter. It can include both numbers and letters, but not spaces. If you need to separate words, use an underscore. + * @param range Optional. The range of text marked by the bookmark. A bookmark can be set to a collapsed range (the insertion point). + * @returns A new `Bookmark` object. + */ + add(name: string, range: Word.Range): Word.Bookmark; /** * Determines whether the specified bookmark exists. *