mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
12 lines
616 B
TypeScript
12 lines
616 B
TypeScript
/// <reference types="react" />
|
|
import { SwitchProps as MuiSwitchProps } from '@material-ui/core/Switch';
|
|
import { FieldProps } from 'formik';
|
|
export interface SwitchProps extends FieldProps, Omit<MuiSwitchProps, 'checked' | 'name' | 'value' | 'defaultChecked' | 'form' | 'type'> {
|
|
type?: string;
|
|
}
|
|
export declare function fieldToSwitch({ disabled, field: { onBlur: fieldOnBlur, ...field }, form: { isSubmitting }, type, onBlur, ...props }: SwitchProps): MuiSwitchProps;
|
|
export declare function Switch(props: SwitchProps): JSX.Element;
|
|
export declare namespace Switch {
|
|
var displayName: string;
|
|
}
|