The keyword 'private' is reserved when I parse typescript code into ast

后端 未结 0 1315
日久生厌
日久生厌 2020-12-09 14:22

I want to parse this code to ast:

const code = `
 class Test {
  constructor(private foo: Foo) { }
 }
`;

But when I run I get error:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题