Skip to content

Commit 72c7749

Browse files
authored
Fix type hint of useDevicePixels to allow number input (#9826)
1 parent 5da7942 commit 72c7749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/src/lib/deck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export type DeckProps<ViewsT extends ViewOrViews = null> = {
9393
/** Controls the resolution of drawing buffer used for rendering.
9494
* @default `true` (use browser devicePixelRatio)
9595
*/
96-
useDevicePixels?: boolean;
96+
useDevicePixels?: boolean | number;
9797
/** Extra pixels around the pointer to include while picking.
9898
* @default `0`
9999
*/

0 commit comments

Comments
 (0)