glutinum-org / cli

https://glutinum.net/
59 stars 6 forks source link

Limit gluitnum type understanding to the current file #62

Closed MangelMaxime closed 3 weeks ago

MangelMaxime commented 8 months ago

Currently, it happens that Glutinum is going to try to understand types coming from Node API or Browser API.

This is problematic because Glutinum does not support all of TypeScript syntax and crash in such cases. Also, I am not sure if there is a usage for representing the AST up to this level.

export type Result = ReadonlyArray<string> | string
Error while reading type node in:
/node_modules/typescript/lib/lib.es5.d.ts(4,10778)

Unsupported kind 196

--- Text ---
(T|ConcatArray<T>)
---

--- Parent text ---
(T|ConcatArray<T>)[]
---
MangelMaxime commented 3 weeks ago

This specific example doesn't cause an issue anymore.