babel-plugin-typescript-to-proptypes

  • Version 2.1.0
  • Published
  • 145 kB
  • 3 dependencies
  • MIT license

Install

npm i babel-plugin-typescript-to-proptypes
yarn add babel-plugin-typescript-to-proptypes
pnpm add babel-plugin-typescript-to-proptypes

Overview

Generate React PropTypes from TypeScript prop interfaces.

Index

Functions

Functions

function _default

_default: (
api: any,
options: PluginOptions,
root: string
) => {
inherits: any;
manipulateOptions(opts: any, parserOptions: any): void;
post(): void;
pre(): void;
visitor: {
Program: {
enter(programPath: NodePath<N>, { filename }: any): void;
exit(path: NodePath<N>, { filename }: any): void;
};
};
};

    Package Files (1)

    Dependencies (3)

    Dev Dependencies (18)

    Peer Dependencies (2)

    Badge

    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/babel-plugin-typescript-to-proptypes.

    • Markdown
      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/babel-plugin-typescript-to-proptypes)
    • HTML
      <a href="https://www.jsdocs.io/package/babel-plugin-typescript-to-proptypes"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>