grunt-ts

'Duplicate identifier' error when compiling typescript definition files to wwwroot folder

只愿长相守 提交于 2020-01-14 09:52:27
问题 I have created a ASP.NET 5 project wich I use mainly for a front-end typescript application. I'm using grunt and grunt-ts to do the compilation. I have a 'src' folder where all my typescript files are contained grunt-ts compiles everything in the 'src' folder and combines this to a single js file wich is then put in the wwwroot folder. A typescript definition file is also generated and put in the wwwroot folder. compiling with grunt/grunt-ts works flawlessly. The problem : When the definition

Latest version of jQuery for TypeScript is throwing syntax errors? [duplicate]

浪尽此生 提交于 2019-12-19 18:56:12
问题 This question already has answers here : Successful build with many errors in typescript typing files (2 answers) Closed 4 years ago . I am almost 100% sure I am doing something wrong to cause this as I am incredibly new to TypeScript and have been updating an old codebase. When I update jQuery to the latest version I get the following errors when I try and build my project using grunt. /jquery/jquery.d.ts(279,40): error TS1005: ',' expected. /jquery/jquery.d.ts(279,61): error TS1005: '='

Creating a single CommonJS module from several TypeScript classes

拥有回忆 提交于 2019-12-03 17:30:50
问题 I'm trying to work out the best way to split my application into a few CommonJS modules that can be consumed by other applications. I have 5 TS classes, and I'd like to bundle them as a single CommonJS module. I then intend to publish this module to a private NPM repo, so it can be consumed by other applications. Ideally I'd like to package the relevant *.d.ts definition files with it. What's the best way to do this? I'm using external TS modules, but these produce a separate CommonJS module

Creating a single CommonJS module from several TypeScript classes

别等时光非礼了梦想. 提交于 2019-12-03 06:20:23
I'm trying to work out the best way to split my application into a few CommonJS modules that can be consumed by other applications. I have 5 TS classes, and I'd like to bundle them as a single CommonJS module. I then intend to publish this module to a private NPM repo, so it can be consumed by other applications. Ideally I'd like to package the relevant *.d.ts definition files with it. What's the best way to do this? I'm using external TS modules, but these produce a separate CommonJS module per TS class. As far as i know typescript doesn't support combining external modules yet. From their