refactor: tidy model-viewer element types
This commit is contained in:
parent
af04a1b209
commit
68a99eeef2
13
app/global.d.ts
vendored
13
app/global.d.ts
vendored
@ -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<HTMLElement> & {
|
||||
'model-viewer': DetailedHTMLProps<
|
||||
HTMLAttributes<HTMLElement> & {
|
||||
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
|
||||
>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user