deno如何解决ts注解问题啊,帮忙告诉一下
你需要自定义tsconfig.json,类似:
{ "compilerOptions": { "allowJs": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "module": "esnext" } }
并在执行时候指定配置文件:
deno run -c tsconfig.json xxx.ts