This is part of the Fake.JavaScript.TypeScript module.

TypeScript

Helpers to run the typeScript compiler.

Sample

1: 
2: 
!! "src/**/*.ts"
    |> TypeScriptCompiler (fun p -> { p with TimeOut = TimeSpan.MaxValue }) 

Nested types and modules

TypeDescription
ECMAScript

Generated ECMAScript version

ModuleGeneration

Generated JavaScript module type

TypeScriptParams

TypeScript task parameter type

Functions and values

Function or valueDescription
TypeScript.compile setParams files
Signature: setParams:(TypeScriptParams -> TypeScriptParams) -> files:seq<string> -> unit

Run tsc --declaration src/app/index.ts

Parameters

  • setParams - Function used to overwrite the TypeScript compiler flags.
  • files - The type script files to compile.

Sample

1: 
2: 
    !! "src/**/*.ts"
        |> TypeScript.compile (fun p -> { p with TimeOut = TimeSpan.MaxValue }) 
TypeScript.extractVersionNumber(di)
Signature: di:DirectoryInfo -> float
TypeScript.TypeScriptDefaultParams
Signature: TypeScriptParams

Default parameters for the TypeScript task