Parsing issue with Typescript
Closed this issue · 6 comments
SPoint42 commented
This code failed to be parse :
export default interface UserCredential {
idToken: string;
user: any;
}
I've check, in https://github.com/tree-sitter/tree-sitter-typescript/blob/master/common/define-grammar.js, and think this is a not supported statement in the parser. But not sure as I don't know really well tree-sitter
mjambon commented
Hi @SPoint42! Sorry for the delay. There's a pending pull request that should fix this: https://github.com/tree-sitter/tree-sitter-typescript/pull/125/files
SPoint42 commented
any ETA ?
aryx commented
As soon as it's merged in the tree-sitter repo. Feel free to ping the PR martin linked above.
mjambon commented
yes, this is fixed in production (semgrep 0.56 or above)!