docxml
Version:
TypeScript (component) library for building and parsing a DOCX file
22 lines (21 loc) • 583 B
TypeScript
export declare type Bookmark = {
id: number;
name: string;
};
export declare class Bookmarks {
#private;
/**
* Marks a unique identifier as taken.
*
* @todo When loading an existing document, bookmarks are not registered from it yet.
*/
registerIdentifier(id: number, name?: string): void;
/**
* Create a unique ID and name for a new bookmark.
*
* @remarks
* Not using a GUID because this causes Word to not make the link clickable. A much shorter
* identifier works as expected.
*/
create(): Bookmark;
}