declare-react-module
TypeScript icon, indicating that this package has built-in type declarations

1.13.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.13.04latest

Version History

VersionDownloads (Last 7 Days)Published
1.13.04
1.12.21
1.12.10
1.12.05
1.11.02
1.10.61
1.10.54
1.10.45
1.10.32
1.10.21
1.10.14
1.10.02
1.9.02
1.8.14
1.8.04
1.7.23
1.7.12
1.7.02
1.6.04
1.5.02
1.4.01
1.3.11
1.3.00
1.2.00
1.1.10
1.1.00
1.0.00

Package Sidebar

Install

npm i declare-react-module

Weekly Downloads

56

Version

1.13.0

License

MIT

Unpacked Size

41.7 kB

Total Files

36

Last publish

Collaborators

  • unstubbable