Make API simplier with interfaces

This commit is contained in:
Dolan
2018-09-25 20:05:35 +01:00
parent 00efedaa09
commit 3a42f2a2f0
6 changed files with 52 additions and 38 deletions

View File

@ -1,7 +1,7 @@
import { expect } from "chai";
import { Formatter } from "../../export/formatter";
import { StyleLevel, TableOfContents, TableOfContentsProperties } from "./";
import { ITableOfContentsProperties, StyleLevel, TableOfContents } from "./";
describe("Table of Contents", () => {
describe("#constructor", () => {
@ -12,7 +12,7 @@ describe("Table of Contents", () => {
});
it("should construct a TOC with all the options and alias", () => {
const props = new TableOfContentsProperties();
const props: ITableOfContentsProperties = {};
props.captionLabel = "A";
props.entriesFromBookmark = "B";