28 lines
768 B
TypeScript
28 lines
768 B
TypeScript
![]() |
import { Document, IDocumentOptions } from "./document";
|
||
|
import { Footer } from "./footer";
|
||
|
import { Header } from "./header/header";
|
||
|
import { Relationships } from "./relationships";
|
||
|
|
||
|
export interface IViewWrapper {
|
||
|
readonly View: Document | Footer | Header;
|
||
|
readonly Relationships: Relationships;
|
||
|
}
|
||
|
|
||
|
export class DocumentWrapper implements IViewWrapper {
|
||
|
private readonly document: Document;
|
||
|
private readonly relationships: Relationships;
|
||
|
|
||
|
constructor(options: IDocumentOptions) {
|
||
|
this.document = new Document(options);
|
||
|
this.relationships = new Relationships();
|
||
|
}
|
||
|
|
||
|
public get View(): Document {
|
||
|
return this.document;
|
||
|
}
|
||
|
|
||
|
public get Relationships(): Relationships {
|
||
|
return this.relationships;
|
||
|
}
|
||
|
}
|