docx-rs/docx-wasm/js/json/document.ts

21 lines
611 B
TypeScript
Raw Normal View History

import { ParagraphJSON, BookmarkStartJSON, BookmarkEndJSON } from "./paragraph";
import { TableJSON } from "./table";
import { SectionPropertyJSON } from "./section-property";
import { CommentRangeStartJSON, CommentRangeEndJSON } from "..";
import { StructuredTagJSON } from "./structured-data-tag";
export type DocumentChildJSON =
| ParagraphJSON
| TableJSON
| CommentRangeStartJSON
| CommentRangeEndJSON
| BookmarkStartJSON
| BookmarkEndJSON
| StructuredTagJSON;
export type DocumentJSON = {
children: DocumentChildJSON[];
sectionProperty: SectionPropertyJSON;
hasNumbering: boolean;
};