slider-monitor

This commit is contained in:
Nathan Bierema 2024-08-04 19:57:50 -04:00
parent 842c2bbabf
commit d099ed4809

View File

@ -21,7 +21,7 @@ import SliderButton from './SliderButton';
const { reset, jumpToAction } = ActionCreators; const { reset, jumpToAction } = ActionCreators;
interface ExternalProps<S, A extends Action<string>> { interface ExternalProps<S, A extends Action<string>> {
// eslint-disable-next-line @typescript-eslint/ban-types // eslint-disable-next-line @typescript-eslint/no-empty-object-type
dispatch: Dispatch<LiftedAction<S, A, {}>>; dispatch: Dispatch<LiftedAction<S, A, {}>>;
preserveScrollTop: boolean; preserveScrollTop: boolean;
select: (state: S) => unknown; select: (state: S) => unknown;
@ -37,9 +37,9 @@ interface DefaultProps {
keyboardEnabled: boolean; keyboardEnabled: boolean;
} }
interface SliderMonitorProps<S, A extends Action<string>> // eslint-disable-next-line @typescript-eslint/ban-types interface SliderMonitorProps<S, A extends Action<string>> // eslint-disable-next-line @typescript-eslint/no-empty-object-type
extends LiftedState<S, A, {}> { extends LiftedState<S, A, {}> {
// eslint-disable-next-line @typescript-eslint/ban-types // eslint-disable-next-line @typescript-eslint/no-empty-object-type
dispatch: Dispatch<LiftedAction<S, A, {}>>; dispatch: Dispatch<LiftedAction<S, A, {}>>;
preserveScrollTop: boolean; preserveScrollTop: boolean;
select: (state: S) => unknown; select: (state: S) => unknown;
@ -376,10 +376,10 @@ export default SliderMonitor as unknown as React.ComponentType<
> & { > & {
update( update(
monitorProps: ExternalProps<unknown, Action<string>>, monitorProps: ExternalProps<unknown, Action<string>>,
// eslint-disable-next-line @typescript-eslint/ban-types // eslint-disable-next-line @typescript-eslint/no-empty-object-type
state: {} | undefined, state: {} | undefined,
action: Action<string>, action: Action<string>,
// eslint-disable-next-line @typescript-eslint/ban-types // eslint-disable-next-line @typescript-eslint/no-empty-object-type
): {}; ): {};
defaultProps: DefaultProps; defaultProps: DefaultProps;
}; };