jsx-typescript
TypeScript fork with React jsx support
Last updated 5 years ago by fdecampredon .
Apache License 2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jsx-typescript -g
SYNC missed versions from official npm registry.

JSX-TypeScript

JSX-TypeScript is a TypeScript fork that brings React JSX support to the language.

Installation

You can install this package with npm

npm install -g jsx-typescript

This package has the exact same structure than the typescript one; so tools which are able to use the typescript compiler should be able to use this package.

Usage

The executable is named jsx-tsc instead of tsc, and has the exact same options than tsc:

jsx-tsc myFile.ts

Typings

JSX-TypeScript does not define React.createElement, and treat it has a simple function call, you need a definition file for react, and I advise you to use the one provided by this repository react.d.ts.

This version of the compiler contains special case for JSXElement call and how it resolves type arguments in a React.createElement, For example it only infers type argument from the jsx tag name. This behavior has been implemented to provide a better experience with the React framework, but I only have tried my compiler against the provided definition file.

TODO

  • Re-enable formatting for JSX
  • In general more tests, stabilization, better error reporting, etc...

Current Tags

  • 1.5.0-alpha.5                                ...           latest (5 years ago)

5 Versions

  • 1.5.0-alpha.5                                ...           5 years ago
  • 1.5.0-alpha.4                                ...           6 years ago
  • 1.5.0-alpha.3                                ...           6 years ago
  • 1.5.0-alpha.2                                ...           6 years ago
  • 1.5.0-alpha.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 10
Last Month 20
Dependencies (0)
None
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |