babel-plugin-typescript-to-proptypes
Version:
Generate React PropTypes from TypeScript prop interfaces.
20 lines • 637 B
TypeScript
/**
* @copyright 2018-2019, Miles Johnson
* @license https://opensource.org/licenses/MIT
*/
import { types as t } from '@babel/core';
import { Path, PluginOptions } from './types';
declare const _default: (api: any, options: PluginOptions, root: string) => {
inherits: any;
manipulateOptions(opts: any, parserOptions: any): void;
post(): void;
pre(): void;
visitor: {
Program: {
enter(programPath: Path<t.Program>, { filename }: any): void;
exit(path: Path<t.Program>, { filename }: any): void;
};
};
};
export default _default;
//# sourceMappingURL=index.d.ts.map