declare-react-module
Create TypeScript declaration files for React modules written in ES.Next.
Last updated 2 years ago by kinghenne .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install declare-react-module 
SYNC missed versions from official npm registry.

declare-react-module

npm build codecov semantic-release

Create TypeScript declaration files for React modules written in ES.Next (stage 2).

Usage

Locally

  1. Install declare-react-module as a dev dependency:

    npm install --save-dev declare-react-module
    
  2. Add a new entry to "scripts" in your package.json:

    {
      "prepublish": "declare-react-module"
    }
    

This will create an index.d.ts file in your project root before publishing to npm.

As a Global Script

  1. Install declare-react-module as a global dependency:

    npm install --global declare-react-module
    
  2. Run declare-react-module from the command line:

    declare-react-module packages/my-package
    # or
    declare-react-module node_modules/some-module --outDir=./typings
    

Current Tags

  • 1.13.0                                ...           latest (2 years ago)

27 Versions

  • 1.13.0                                ...           2 years ago
  • 1.12.2                                ...           2 years ago
  • 1.12.1                                ...           2 years ago
  • 1.12.0                                ...           2 years ago
  • 1.11.0                                ...           2 years ago
  • 1.10.6                                ...           2 years ago
  • 1.10.5                                ...           2 years ago
  • 1.10.4                                ...           2 years ago
  • 1.10.3                                ...           2 years ago
  • 1.10.2                                ...           2 years ago
  • 1.10.1                                ...           2 years ago
  • 1.10.0                                ...           2 years ago
  • 1.9.0                                ...           2 years ago
  • 1.8.1                                ...           2 years ago
  • 1.8.0                                ...           2 years ago
  • 1.7.2                                ...           2 years ago
  • 1.7.1                                ...           2 years ago
  • 1.7.0                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.5.0                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dev Dependencies (21)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |