react-dts-generator
Version:
Simple .d.ts generator for React components.
19 lines (18 loc) • 429 B
TypeScript
export interface ImportType {
named?: string;
default?: string;
from: string;
}
export interface Extends {
includePropsAsGeneric?: boolean;
import: ImportType;
}
export interface Options {
input: string;
output: string;
isBaseClass?: boolean;
propTypesComposition?: ImportType[];
extends?: Extends;
imports?: ImportType[];
}
export declare function generate(options: Options): string;