2020-02-27 20:12:36 +02:00
|
|
|
import { StylesJSON } from "./styles";
|
2020-02-13 10:02:08 +02:00
|
|
|
import { DocumentJSON } from "./document";
|
2020-02-27 20:12:36 +02:00
|
|
|
import { NumberingsJSON } from "./numbering";
|
2020-02-13 09:14:06 +02:00
|
|
|
|
|
|
|
export type DocxJSON = {
|
|
|
|
contentType: {
|
|
|
|
types: {
|
|
|
|
[k: string]: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
rels: [string, string, string][];
|
|
|
|
documentRels: {
|
|
|
|
hasComments: boolean;
|
|
|
|
hasNumberings: boolean;
|
|
|
|
};
|
|
|
|
docProps: {
|
|
|
|
app: {};
|
|
|
|
core: {
|
|
|
|
config: {
|
|
|
|
creator: string | null;
|
|
|
|
description: string | null;
|
|
|
|
language: string | null;
|
|
|
|
lastModifiedBy: string | null;
|
|
|
|
modified: string | null;
|
|
|
|
revision: string | null;
|
|
|
|
subject: string | null;
|
|
|
|
title: string | null;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2020-02-27 20:12:36 +02:00
|
|
|
styles: StylesJSON;
|
2020-02-13 10:02:08 +02:00
|
|
|
document: DocumentJSON;
|
2020-02-13 09:14:06 +02:00
|
|
|
comments: {
|
2020-02-27 20:12:36 +02:00
|
|
|
comments: any[]; // TODO:
|
2020-02-13 10:02:08 +02:00
|
|
|
};
|
2020-02-27 20:12:36 +02:00
|
|
|
numberings: NumberingsJSON;
|
2020-02-13 09:14:06 +02:00
|
|
|
settings: {
|
|
|
|
defaultTabStop: number;
|
|
|
|
zoom: number;
|
|
|
|
};
|
|
|
|
fontTable: {};
|
|
|
|
};
|
|
|
|
|
|
|
|
export * from "./styles";
|
|
|
|
export * from "./border";
|
|
|
|
export * from "./document";
|
|
|
|
export * from "./paragraph";
|
|
|
|
export * from "./run";
|
|
|
|
export * from "./table";
|
2020-02-13 10:02:08 +02:00
|
|
|
export * from "./numbering";
|
2020-04-07 04:24:56 +03:00
|
|
|
export * from "./drawing";
|
|
|
|
export * from "./textbox-content";
|