feat: Add definition (#41)
parent
03a6c7e970
commit
88298bef9d
|
@ -1,4 +1,6 @@
|
||||||
import { Styles } from "./styles";
|
import { Styles } from "./styles";
|
||||||
|
import { DocumentJSON } from "./document";
|
||||||
|
import { AbstractNumberingJSON, NumberingJSON } from "./numbering";
|
||||||
|
|
||||||
export type DocxJSON = {
|
export type DocxJSON = {
|
||||||
contentType: {
|
contentType: {
|
||||||
|
@ -27,13 +29,14 @@ export type DocxJSON = {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
styles: Styles;
|
styles: Styles;
|
||||||
document: {
|
document: DocumentJSON;
|
||||||
children: any[];
|
|
||||||
};
|
|
||||||
comments: {
|
comments: {
|
||||||
comments: any[];
|
comments: any[];
|
||||||
};
|
};
|
||||||
numberings: {};
|
numberings: {
|
||||||
|
abstractNums: AbstractNumberingJSON[];
|
||||||
|
numberings: NumberingJSON[];
|
||||||
|
};
|
||||||
settings: {
|
settings: {
|
||||||
defaultTabStop: number;
|
defaultTabStop: number;
|
||||||
zoom: number;
|
zoom: number;
|
||||||
|
@ -47,3 +50,4 @@ export * from "./document";
|
||||||
export * from "./paragraph";
|
export * from "./paragraph";
|
||||||
export * from "./run";
|
export * from "./run";
|
||||||
export * from "./table";
|
export * from "./table";
|
||||||
|
export * from "./numbering";
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
Loading…
Reference in New Issue