Skip to content

Commit

Permalink
chore: improve ts type
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed May 8, 2022
1 parent 9244bed commit fba8f47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Circle.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import classNames from 'classnames';
import { useTransitionDuration, defaultProps } from './common';
import type { ProgressProps, GapPositionType } from './interface';
import type { ProgressProps } from './interface';
import useId from './hooks/useId';

function stripPercentToNumber(percent: string) {
Expand All @@ -21,7 +21,7 @@ const getCircleStyle = (
percent: number,
strokeColor: string | Record<string, string>,
gapDegree = 0,
gapPosition: GapPositionType,
gapPosition: ProgressProps['gapPosition'],
strokeLinecap: ProgressProps['strokeLinecap'],
strokeWidth,
) => {
Expand Down
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import Line from './Line';
import Circle from './Circle';
import { ProgressProps } from './interface';

export { Line, Circle, ProgressProps };

export type { ProgressProps } from './interface';
export { Line, Circle };
export default {
Line,
Circle,
Expand Down

0 comments on commit fba8f47

Please sign in to comment.