Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/docxml/src/files/Comments.ts>Comments#add

TypeScript library for parsing and building a DOCXML file
Go to Latest
method Comments.prototype.add
import { Comments } from "https://deno.land/x/docxml@5.2.0/src/files/Comments.ts";

Add a comment to the DOCX file and return its new identifier. You should reference this identifier from the document using the Comment, CommentRangeStart and CommentRangeEnd components.

Parameters

meta: Omit<Comment, "id" | "contents">
contents: Comment["contents"]