mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
11 lines
355 B
TypeScript
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
|