Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Typescript support #12

Open
magne4000 opened this issue Sep 3, 2023 · 3 comments
Open

Add Typescript support #12

magne4000 opened this issue Sep 3, 2023 · 3 comments

Comments

@magne4000
Copy link

magne4000 commented Sep 3, 2023

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
Copy link
Owner

sarsamurmu commented Sep 3, 2023

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
Copy link

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

@sarsamurmu
Copy link
Owner

It's not compatible with typescript-estree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants