babel-plugin-typescript-to-proptypes
Version:
Generate React PropTypes from TypeScript prop interfaces.
13 lines • 383 B
TypeScript
import { types as t } from '@babel/core';
interface Response {
defaultImport: string;
namedImport: string;
namedImports: string[];
}
interface UpsertOptions {
checkForDefault?: string;
checkForNamed?: string;
}
export declare function upsertImport(imp: t.ImportDeclaration, options?: UpsertOptions): Response;
export {};
//# sourceMappingURL=upsertImport.d.ts.map