feat: Add definition (#41)

main
bokuweb 2020-02-13 17:02:08 +09:00 committed by GitHub
parent 03a6c7e970
commit 88298bef9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 4 deletions

View File

@ -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";

View File

@ -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;
};