1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { SFC, ComponentType } from 'react';
export interface EnumValue {
value: string;
computed: boolean;
}
export interface FlowTypeElement {
name: string;
value: string;
}
export interface FlowTypeArgs {
name: string;
type: {
name: string;
};
}
export interface PropType {
name: string;
value?: any;
raw?: any;
computed?: boolean;
}
export interface FlowType extends PropType {
elements: FlowTypeElement[];
name: string;
raw: string;
type?: string;
computed?: boolean;
signature?: {
arguments: FlowTypeArgs[];
return: {
name: string;
};
};
}
export interface Prop {
required: boolean;
description?: string;
type: PropType;
defaultValue?: {
value: string;
computed: boolean;
};
flowType?: FlowType;
}
export declare type ComponentWithDocGenInfo = ComponentType & {
__docgenInfo: {
description?: string;
props?: Record<string, Prop>;
};
};
export interface PropsProps {
title?: Node;
isRaw?: boolean;
isToggle?: boolean;
of: ComponentWithDocGenInfo;
}
export declare const getPropType: (prop: Prop) => any;
export interface PropsComponentProps {
title?: Node;
isRaw?: boolean;
isToggle?: boolean;
props: Record<string, Prop>;
getPropType(prop: Prop): string;
}
export declare const Props: SFC<PropsProps>;