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

Commented 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
Comments: This is a TypeScript editor bug (or feature request?) - can you please open it in their bug tracker? NTVS does not provide its own TypeScript editing support, it just uses the one that's already in VS. https://typescript.codeplex.com/workitem/list/basic

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>