Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Mar 25, 2021
1 parent 683a818 commit 6a465d5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import warning from 'rc-util/lib/warning';
import Track from './common/Track';
import createSlider from './common/createSlider';
import * as utils from './utils';
import { GenericSliderProps, GenericSliderState } from './interface';
import type { GenericSliderProps, GenericSliderState } from './interface';

export interface SliderProps extends GenericSliderProps {
value?: number;
Expand Down
2 changes: 1 addition & 1 deletion src/common/SliderTooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import Tooltip from 'rc-tooltip';
import { TooltipProps } from 'rc-tooltip/lib/Tooltip';
import type { TooltipProps } from 'rc-tooltip/lib/Tooltip';
import { composeRef } from 'rc-util/lib/ref';
import raf from 'rc-util/lib/raf';

Expand Down
5 changes: 3 additions & 2 deletions src/common/createSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import classNames from 'classnames';
import warning from 'rc-util/lib/warning';
import Steps from './Steps';
import Marks from './Marks';
import Handle, { HandleProps } from '../Handle';
import type { HandleProps } from '../Handle';
import Handle from '../Handle';
import * as utils from '../utils';
import { GenericSliderProps, GenericSliderState, GenericSlider } from '../interface';
import type { GenericSliderProps, GenericSliderState, GenericSlider } from '../interface';

/* eslint-disable @typescript-eslint/no-explicit-any */

Expand Down
2 changes: 1 addition & 1 deletion src/createSliderWithTooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import Tooltip from './common/SliderTooltip';
import Handle from './Handle';
import { GenericSliderProps } from './interface';
import type { GenericSliderProps } from './interface';

export interface ComponentWrapperProps {
tipFormatter?: (value: number) => React.ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion src/interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as React from 'react';
import type * as React from 'react';

export interface GenericSliderProps {
min?: number;
Expand Down

1 comment on commit 6a465d5

@vercel
Copy link

@vercel vercel bot commented on 6a465d5 Mar 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.