Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Unassigned: interface merge with JS classes [897]

$
0
0
The current release does not seem to handle the following properly, even though it is handled fine by the online Playground:

```
interface String {
newMethod ():string;
}

String.prototype.newMethod = function ():string {
// ...
return "something";
}
```

and I can't seem to add newMethod to an interface for String in VS2013 anywhere.

Thanks

Todd

Viewing all articles
Browse latest Browse all 4630

Trending Articles