diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..36c1c50 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,7 @@ +export interface Block { + scope: string, + children: Block[], +} + +/** Parse blocks of text based on indentation. */ +export function parse(text: string): Block[]