diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2024-04-18 11:07:53 +0200 | 
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2024-04-18 11:35:24 +0200 | 
| commit | 4b160d1b2119cd2007ea7a76d4baba56ad66b825 (patch) | |
| tree | a6c5d491c8306304cc9ec112ffedcae4ff6bced3 /bindings/node/index.d.ts | |
| parent | 1f10ff9a6039a50e2f7be394fc22b1400832cf17 (diff) | |
Support comments… sortav1.2.0
Diffstat (limited to 'bindings/node/index.d.ts')
| -rw-r--r-- | bindings/node/index.d.ts | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/bindings/node/index.d.ts b/bindings/node/index.d.ts new file mode 100644 index 0000000..efe259e --- /dev/null +++ b/bindings/node/index.d.ts @@ -0,0 +1,28 @@ +type BaseNode = { +  type: string; +  named: boolean; +}; + +type ChildNode = { +  multiple: boolean; +  required: boolean; +  types: BaseNode[]; +}; + +type NodeInfo = +  | (BaseNode & { +      subtypes: BaseNode[]; +    }) +  | (BaseNode & { +      fields: { [name: string]: ChildNode }; +      children: ChildNode[]; +    }); + +type Language = { +  name: string; +  language: unknown; +  nodeTypeInfo: NodeInfo[]; +}; + +declare const language: Language; +export = language; |