Skip to content

Commit

Permalink
[Checkbox] Add checkedPrimary and checkedSecondary to Typescript defi…
Browse files Browse the repository at this point in the history
…nition (mui#10747)

* [Checkbox] Added checkedPrimary and checkedSecondary to Typescript definition

* fix Radio.d.ts too
  • Loading branch information
cvanem authored and oliviertassinari committed Mar 21, 2018
1 parent 52084ed commit a9fb4ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Checkbox/Checkbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface CheckboxProps extends StandardProps<SwitchBaseProps, CheckboxCl
color?: 'primary' | 'secondary' | 'default';
}

export type CheckboxClassKey = SwitchBaseClassKey;
export type CheckboxClassKey = SwitchBaseClassKey | 'checkedPrimary' | 'checkedSecondary';

declare const Checkbox: React.ComponentType<CheckboxProps>;

Expand Down
2 changes: 1 addition & 1 deletion src/Radio/Radio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface RadioProps extends StandardProps<SwitchBaseProps, RadioClassKey
color?: 'primary' | 'secondary' | 'default';
}

export type RadioClassKey = SwitchBaseClassKey;
export type RadioClassKey = SwitchBaseClassKey | 'checkedPrimary' | 'checkedSecondary';

declare const Radio: React.ComponentType<RadioProps>;

Expand Down

0 comments on commit a9fb4ea

Please sign in to comment.