From 21a6e73fda128737c813a991867db79306da3b19 Mon Sep 17 00:00:00 2001 From: Raine Revere Date: Thu, 25 Jun 2020 13:42:51 -0600 Subject: [PATCH] Add typescript type declaration file. --- index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 index.d.ts 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[]