sarsamurmu / estree-toolkit

Tools for working with ESTree AST
https://estree-toolkit.netlify.app/
MIT License
54 stars 1 forks source link

Add Typescript support #12

Open magne4000 opened 1 year ago

magne4000 commented 1 year ago

scope currently does not support Typescript instructions, so for the following snippet:

import { type A } from 'b';

export const x: A = '';

A has no references computed if I traverse this code. I generate the ast through recast/magicast.

sarsamurmu commented 1 year ago

I haven't implemented TypeScript support because a lot of nodes are different in TypeScript. So it would need a lot of code to support TypeScript AST. I'm currently not implementing it as there is not much demand for it. I would be happy to implement it once there is enough demand. Thanks for opening the issue.

uncomplexity commented 2 months ago

question, is this usable with https://typescript-eslint.io/packages/typescript-estree?

sarsamurmu commented 2 months ago

It's not compatible with typescript-estree