Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

declare-react-module

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

declare-react-module

Create TypeScript declaration files for React modules written in ES.Next.

  • 1.13.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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
    

Keywords

FAQs

Package last updated on 13 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc