babel-plugin-typescript-to-proptypes
Version:
Generate React PropTypes from TypeScript prop interfaces.
4 lines • 333 B
TypeScript
import { types as t } from '@babel/core';
import { ConvertState, Path, PropTypeDeclaration } from './types';
export declare function addToFunctionOrVar(path: Path<t.FunctionDeclaration | t.VariableDeclaration>, name: string, propsType: PropTypeDeclaration, state: ConvertState): void;
//# sourceMappingURL=addToFunctionOrVar.d.ts.map