[英]Node.d.ts issues errors using typescript compiler, how do I fix?
I have a project that's a NODE console application project using Visual Studio 2013. When I compile the solution I'm getting typescript errors as follows: 我有一个使用Visual Studio 2013的NODE控制台应用程序项目。在编译解决方案时,出现如下打字错误:
Typescript wants a semicolon after 打字稿后要分号
export interface ReadableStream extends EventEmitter {
readable: boolean;
read(size?: number): string|Buffer;
//Like this ----> read(size?: number): string;|Buffer;
Which means I have to get rid of the pipe Buffer; 这意味着我必须摆脱管道Buffer; if I do that it I have a lot of other problems for modules that implement this interface...
如果这样做的话,实现该接口的模块还有很多其他问题...
I downloaded the definitely-typed definitions about a month ago, perhaps they're outdated? 我大约一个月前下载了绝对类型的定义,也许它们已经过时了?
One thing is for sure using TS in NODE console applications is a bit of a challenge... any tips are appreciated in advance. 可以肯定的是,要在NODE控制台应用程序中使用TS有点困难……任何技巧都应事先了解。
Typescript wants a semicolon after
打字稿后要分号
You are using an older version of TypeScript. 您正在使用旧版本的TypeScript。 Upgrade to TypeScript 1.4 or later.
升级到TypeScript 1.4或更高版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.