Skip to content

Commit f404f08

Browse files
authored
Add Relationship types (#132)
1 parent ae789b4 commit f404f08

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/types.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ export interface WJSTextRun {
55
v: string;
66
}
77

8+
export interface WJSEndNote {
9+
t: "endnote";
10+
/** Id of the endnote element it's linked to */
11+
id: Number;
12+
/** Body */
13+
p: WJSPara[];
14+
}
15+
816
export interface WJSTableCell {
917
t: "c";
1018
/** Body */
@@ -26,7 +34,7 @@ export interface WJSTable {
2634
}
2735

2836
/** Children elements of a Paragraph */
29-
export type WJSParaElement = WJSTextRun | WJSTable;
37+
export type WJSParaElement = WJSTextRun | WJSTable | WJSEndNote;
3038

3139
/** Paragraph */
3240
export interface WJSPara {
@@ -37,4 +45,19 @@ export interface WJSPara {
3745
/** WordJS Document */
3846
export interface WJSDoc {
3947
p: WJSPara[];
48+
rels?: WJSRelationship;
49+
}
50+
51+
/** Relationship */
52+
export interface WJSRel {
53+
t: "rel";
54+
id: String;
55+
type: String;
56+
target: String;
57+
targerMode?: String;
58+
}
59+
60+
/** WordJS Relationship */
61+
export interface WJSRelationship {
62+
rels: WJSRel[];
4063
}

0 commit comments

Comments
 (0)