mirror of
https://github.com/exogen/t2-model-skinner.git
synced 2026-01-19 19:24:44 +00:00
20 lines
449 B
TypeScript
20 lines
449 B
TypeScript
import "react";
|
|
import type { ModelViewerElement } from "@google/model-viewer";
|
|
|
|
type ModelViewerProps = React.DetailedHTMLProps<
|
|
React.HTMLAttributes<ModelViewerElement>,
|
|
ModelViewerElement
|
|
> &
|
|
// avoid the style clash (React owns `style`)
|
|
Omit<Partial<ModelViewerElement>, "style" | "className">;
|
|
|
|
declare module "react" {
|
|
namespace JSX {
|
|
interface IntrinsicElements {
|
|
"model-viewer": ModelViewerProps;
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|