Comply with noImplicitAny (#9940)

* Stash noImplicitAny work

* Stash

* Fix imports

* Iterate

* Fix tests

* Delint

* Fix tests
This commit is contained in:
Michael Telatynski 2023-02-13 11:39:16 +00:00 committed by GitHub
parent ac7f69216e
commit 61a63e47f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
359 changed files with 1621 additions and 1353 deletions

View file

@ -22,22 +22,24 @@ import { Caption } from "../typography/Caption";
interface IProps {
// The value for the toggle switch
value: boolean;
"value": boolean;
// The translated label for the switch
label: string;
"label": string;
// The translated caption for the switch
caption?: string;
"caption"?: string;
// Tooltip to display
tooltip?: string;
"tooltip"?: string;
// Whether or not to disable the toggle switch
disabled?: boolean;
"disabled"?: boolean;
// True to put the toggle in front of the label
// Default false.
toggleInFront?: boolean;
"toggleInFront"?: boolean;
// Additional class names to append to the switch. Optional.
className?: string;
"className"?: string;
// The function to call when the value changes
onChange(checked: boolean): void;
"data-testid"?: string;
}
export default class LabelledToggleSwitch extends React.PureComponent<IProps> {