refactor: tidy model-viewer element types

This commit is contained in:
rajun 2026-10-27 16:28:47 +05:30
parent af04a1b209
commit 68a99eeef2

13
app/global.d.ts vendored
View File

@ -1,10 +1,10 @@
import * as React from 'react'; import type { DetailedHTMLProps, HTMLAttributes } from 'react';
declare module 'react' { declare module 'react' {
namespace JSX { namespace JSX {
interface IntrinsicElements { interface IntrinsicElements {
'model-viewer': React.DetailedHTMLProps< 'model-viewer': DetailedHTMLProps<
React.HTMLAttributes<HTMLElement> & { HTMLAttributes<HTMLElement> & {
src?: string; src?: string;
'ios-src'?: string; 'ios-src'?: string;
ar?: boolean; ar?: boolean;
@ -18,17 +18,10 @@ declare module 'react' {
'shadow-softness'?: string | number; 'shadow-softness'?: string | number;
exposure?: string | number; exposure?: string | number;
'interaction-prompt'?: string; 'interaction-prompt'?: string;
'min-camera-orbit'?: string;
'max-camera-orbit'?: string;
'camera-orbit'?: string; 'camera-orbit'?: string;
'field-of-view'?: string; 'field-of-view'?: string;
scale?: string;
'auto-rotate'?: boolean; 'auto-rotate'?: boolean;
'rotation-per-second'?: string; 'rotation-per-second'?: string;
onLoad?: (e: any) => void;
'onAr-status'?: (e: any) => void;
'onModel-visibility'?: (e: any) => void;
'onCamera-change'?: (e: any) => void;
}, },
HTMLElement HTMLElement
>; >;