Skip to content

Commit

Permalink
docs: Resizable
Browse files Browse the repository at this point in the history
  • Loading branch information
rashagu committed Nov 25, 2024
1 parent 4b52092 commit df3bc57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface HandleStyle {
export interface ResizableProps {
style?: CSSProperties;
className?: string;
grid?: [number, number];
grid?: [number, number] | number;
snap?: {
x?: number[];
y?: number[]
Expand Down Expand Up @@ -102,7 +102,7 @@ const propTypes: CombineProps<ResizableProps> = {
style: PropTypes.object,
className: PropTypes.string,
//@ts-ignore
grid: PropTypes.array as PropType<ResizableProps['grid']>,
grid: [PropTypes.array, PropTypes.number] as PropType<ResizableProps['grid']>,
snap: PropTypes.object,
snapGap: PropTypes.number,
bounds: PropTypes.node as PropType<ResizableProps['bounds']>,
Expand Down

0 comments on commit df3bc57

Please sign in to comment.