Document types conventions
Wei Zhu edited this page Jan 20, 2017
·
16 revisions
Follows TypeScript's type style.
-
boolean
for boolean values; -
string
for string values; -
string[]
orArray<string>
for array values; -
number
for number values; -
any
for any value; -
object
for plain objects;
(selectedRowKeys: string[], selectedRows: <T>[]) => any
string[]
// element has multiple types
Array<string|number>
'primary'|'ghost'|'dashed'
Markdown requires \
to escape |
in table.
boolean\|number
string|ReactNode
string|ReactElement
Menu.Item
// for array
Menu.Item[]
ReactElement<InputProps>
- Get type's permanent link: https://github.com/ant-design/ant-design/blob/1bf0bab2a7bc0a774119f501806e3e0e3a6ba283/components/cascader/index.tsx#L9
- Use https://git.io shorten url
[CascaderOptionType](https://git.io/vMMoK)[]
- Home
- Cookbook
- FAQ
- Template for Bug Report in IE8 9
- Contributing
- Maintaining
- Design