File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ Options
8686- ``` declarationFiles``` (boolean) - Generates corresponding .d.ts files.
8787- ` ` ` noExternalResolve ` ` ` (boolean ) - Do not resolve files that are not in the input . Explanation below .
8888- ` ` ` sortOutput ` ` ` (boolean ) - Sort output files . Usefull if you want to concatenate files (see below ).
89- - ` ` ` typescript ` ` ` (object ) - Use a different version / fork of TypeScript (see below ). You probably won ' t need this option, unless you know what you ' re doing !
89+ - ` ` ` typescript ` ` ` (object ) - Use a different version / fork of TypeScript (see below ). Use it like : ` typescript: require('typescript') ` or ` typescript: require('my-fork-of-typescript') `
9090
9191TypeScript version
9292------------------
@@ -99,6 +99,13 @@ You can use a custom version of TypeScript. Add the version you want (1.4+) to y
9999 }
100100}
101101` ` `
102+ And add this to your gulpfile :
103+ ` ` ` javascript
104+ [...].pipe(ts({
105+ typescript: require('typescript')
106+ }));
107+ ` ` `
108+ You can use 1.5 .0 - alpha of TypeScript if you write this in your ` package.json ` file : ` "typescript": "1.5.0-alpha" `
102109
103110It ' s also possible to use a fork of TypeScript. Add an extra option to the options object like this:
104111` ` ` javascript
You can’t perform that action at this time.
0 commit comments