haskell-typescript-0.1.0.0: Simple TypeScript API

Safe HaskellSafe-Inferred

TypeScript.Bindings

Description

A simple TypeScript library.

Synopsis

Documentation

data TypeScript Source

The TypeScript data structure

Constructors

TypeScript 

Fields

customCompiler :: Maybe FilePath

Custom compiler path, set to Nothing for default

Instances

typeScriptCompileSource

Arguments

:: [FilePath]

List of .ts files to compile

-> Maybe FilePath

Output directory, Nothing for default

-> TypeScript

TypeScript structure for more options

-> IO ExitCode

Exit code

Compile .ts file(s)

typeScriptVersion :: TypeScript -> IO StringSource

Get the version of the typescript binary

typeScriptPrint :: FilePath -> TypeScript -> IO StringSource

Print the TypeScript output