Files
DefinitelyTyped/types/kss/kss-tests.ts
2017-03-29 14:52:20 -07:00

11 lines
355 B
TypeScript

import kss = require("kss");
kss.traverse("src", { markdown: false })
.then((styleguide) => styleguide.sections())
.then((sections) => sections.map((s) => s.toJSON()))
.then((json) => console.log(json));
const json = kss.parse("file contents", { header: false }).sections().map((s) => s.toJSON());
// both json vars should be the same type