JSPM

typescript-api

0.9.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 377
  • Score
    100M100P100Q69244F
  • License MIT

TypeScript API exposed (includes definition file)

Package Exports

  • typescript-api

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (typescript-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

TypeScript API

TypeScript API exposed (includes definition file).

This version is compatable with TypeScript 0.9.5.

Dependency Status NPM version Views

NPM

TypeScript Usage

First, install dt-node as a bower dependency:

$ bower install --save-dev dt-node https://github.com/jedmao/dt-node.git

Then, you can reference the typescript-api.d.ts. You have to do it this way because the typescript-api has to use the same node.d.ts that your application is using. Otherwise, it will throw compiler errors.

/// <reference path="node_modules/typescript-api/typescript-api.d.ts" />
import ts = require('typescript-api');
var compiler = new ts.TypeScriptCompiler(new ts.NullLogger());

JavaScript Usage

var ts = require('typescript-api');
var compiler = new ts.TypeScriptCompiler(new ts.NullLogger());

License

Released under the MIT license.

Bitdeli Badge