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

26 lines
637 B
TypeScript

import { RunPropertyJSON } from "./run";
import { ParagraphPropertyJSON } from "./paragraph";
import { TablePropertyJSON } from "./table";
import { TableCellPropertyJSON } from "..";
import { StyleType } from "../style";
export type StyleJSON = {
styleId: string;
name: string;
styleType: StyleType;
runProperty: RunPropertyJSON;
paragraphProperty: ParagraphPropertyJSON;
tableProperty: TablePropertyJSON;
tableCellProperty: TableCellPropertyJSON;
basedOn: string | null;
};
export type StylesJSON = {
docDefaults: {
runPropertyDefault: {
runProperty: RunPropertyJSON;
};
};
styles: StyleJSON[];
};