Skip to content

Commit

Permalink
docs: Fixed typo (ant-design#48393)
Browse files Browse the repository at this point in the history
Signed-off-by: LiveTembiso <[email protected]>
  • Loading branch information
LiveTembiso authored Apr 11, 2024
1 parent 912a447 commit f460b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/_util/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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];
```

0 comments on commit f460b48

Please sign in to comment.