diff --git a/docx-wasm/js/json/index.ts b/docx-wasm/js/json/index.ts index 4070ccf..39a0f18 100644 --- a/docx-wasm/js/json/index.ts +++ b/docx-wasm/js/json/index.ts @@ -1,4 +1,6 @@ import { Styles } from "./styles"; +import { DocumentJSON } from "./document"; +import { AbstractNumberingJSON, NumberingJSON } from "./numbering"; export type DocxJSON = { contentType: { @@ -27,13 +29,14 @@ export type DocxJSON = { }; }; styles: Styles; - document: { - children: any[]; - }; + document: DocumentJSON; comments: { comments: any[]; }; - numberings: {}; + numberings: { + abstractNums: AbstractNumberingJSON[]; + numberings: NumberingJSON[]; + }; settings: { defaultTabStop: number; zoom: number; @@ -47,3 +50,4 @@ export * from "./document"; export * from "./paragraph"; export * from "./run"; export * from "./table"; +export * from "./numbering"; diff --git a/docx-wasm/js/json/numbering.ts b/docx-wasm/js/json/numbering.ts new file mode 100644 index 0000000..687e995 --- /dev/null +++ b/docx-wasm/js/json/numbering.ts @@ -0,0 +1,16 @@ +import { ParagraphPropertyJSON } from "./paragraph"; + +export type AbstractNumberingJSON = { + level: number; + start: number; + format: string; + text: string; + jc: string; + pstyle: string | null; + paragraphProperty: ParagraphPropertyJSON; +}; + +export type NumberingJSON = { + id: number; + abstractNumId: number; +};