Skip to content

Commit

Permalink
fix(types): loosen color and gap types (#6713)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed Oct 21, 2023
1 parent 4e609e2 commit 91fb12b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/types.tsx
Expand Up @@ -32,7 +32,8 @@ export type Color =
| 'dark'
| 'light'
| 'white'
| 'muted';
| 'muted'
| string;

export type Placement = import('@restart/ui/usePopper').Placement;

Expand Down Expand Up @@ -62,7 +63,7 @@ export const alignPropType = PropTypes.oneOfType([

export type RootCloseEvent = 'click' | 'mousedown';

export type GapValue = 0 | 1 | 2 | 3 | 4 | 5;
export type GapValue = 0 | 1 | 2 | 3 | 4 | 5 | number;

export interface PopperRef {
state: State | undefined;
Expand Down

0 comments on commit 91fb12b

Please sign in to comment.