docs: Fixed typo (#48393)

Signed-off-by: LiveTembiso <livetembiso0@gmail.com>
This commit is contained in:
LiveTembiso 2024-04-11 06:09:37 +02:00 committed by GitHub
parent 912a447c05
commit f460b48e8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,13 +39,13 @@ type CheckboxGroupType = GetProps<typeof Checkbox.Group>;
## GetProp
Get the single `props` property definition of the component. It has encapsulated `NonNullable`, so you don't have to worry about being empty:
Get the single `props` property definition of the component. It has encapsulated `NonNullable`, so you don't have to worry about it being empty:
```tsx
import { Select } from 'antd';
import type { GetProp, SelectProps } from 'antd';
// Both of this can work
// Both of these can work
type SelectOptionType1 = GetProp<SelectProps, 'options'>[number];
type SelectOptionType2 = GetProp<typeof Select, 'options'>[number];
```