From 68a99eeef2bd07e434bfe8ce49fd991a249b35b8 Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:47 +0530 Subject: [PATCH] refactor: tidy model-viewer element types --- app/global.d.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/app/global.d.ts b/app/global.d.ts index 7ca96d3..9eabea2 100644 --- a/app/global.d.ts +++ b/app/global.d.ts @@ -1,10 +1,10 @@ -import * as React from 'react'; +import type { DetailedHTMLProps, HTMLAttributes } from 'react'; declare module 'react' { namespace JSX { interface IntrinsicElements { - 'model-viewer': React.DetailedHTMLProps< - React.HTMLAttributes & { + 'model-viewer': DetailedHTMLProps< + HTMLAttributes & { src?: string; 'ios-src'?: string; ar?: boolean; @@ -18,17 +18,10 @@ declare module 'react' { 'shadow-softness'?: string | number; exposure?: string | number; 'interaction-prompt'?: string; - 'min-camera-orbit'?: string; - 'max-camera-orbit'?: string; 'camera-orbit'?: string; 'field-of-view'?: string; - scale?: string; 'auto-rotate'?: boolean; 'rotation-per-second'?: string; - onLoad?: (e: any) => void; - 'onAr-status'?: (e: any) => void; - 'onModel-visibility'?: (e: any) => void; - 'onCamera-change'?: (e: any) => void; }, HTMLElement >;