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 >;