angular-docgen
Version:
A toolkit to extract information from Angular components for documentation generation.
23 lines (22 loc) • 560 B
TypeScript
export interface ComponentDoc {
description?: string;
name?: string;
selector?: string;
styleUrls?: string[];
styles?: string[];
templateUrl?: string;
template?: string;
}
export interface PropertyDoc {
description?: string | null;
name?: string;
options?: (string | number)[] | null;
type?: string | null;
value?: string | number | boolean | null;
}
export interface Doc {
component: ComponentDoc;
inputs?: PropertyDoc[];
outputs?: PropertyDoc[];
}
export default function parse(code: string): Doc;