Skip to content

Commit

Permalink
[core] Mark context value as nullable for optional providers (mui#20278)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianschmitz authored and EsoterikStare committed Mar 30, 2020
1 parent 4127d3d commit bc47f86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/material-ui/src/FormControl/useFormControl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ export interface FormControlState extends Pick<FormControlProps, ContextFromProp
onFocus: () => void;
}

export default function useFormControl(): FormControlState;
export default function useFormControl(): FormControlState | undefined;
2 changes: 1 addition & 1 deletion packages/material-ui/src/RadioGroup/useRadioGroup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import { RadioGroupProps } from './RadioGroup';

export interface RadioGroupState extends Pick<RadioGroupProps, 'name' | 'onChange' | 'value'> {}

export default function useRadioGroup(): RadioGroupState;
export default function useRadioGroup(): RadioGroupState | undefined;

0 comments on commit bc47f86

Please sign in to comment.