dsherret / ts-type-info

TypeScript AST and code generator [Deprecated]
MIT License
94 stars 8 forks source link

primitive methods #188

Closed dgzornoza closed 7 years ago

dgzornoza commented 8 years ago

Hi, great project and very good coding. Is there any possibility for get primitive methods?, ie: string methods

I write a intellisense extensión for vscode.

Thanx

dsherret commented 8 years ago

Thanks! Unfortunately this library won't be good for writing an intellisense extension because it will be very slow.

For you, it's definitely better to use the compiler api and get the symbols of nodes in order to get all the methods, properties, and such. This library mostly uses nodes instead of symbols. Using the compiler api will be fast too.

That said, I will look into handling methods for primitive types.

dsherret commented 7 years ago

Not doing. Focusing dev effort on ts-simple-ast, which has the ability to get primitive methods.