Favivon - Correção

This commit is contained in:
2026-05-30 19:59:39 -03:00
parent 76ddaa815d
commit d7dfd221f0
32859 changed files with 5459654 additions and 404 deletions
+27
View File
@@ -0,0 +1,27 @@
import * as React from 'react';
import { GLTFLoader, GLTF } from 'three-stdlib';
import { ObjectMap } from '@react-three/fiber';
import { CloneProps } from './Clone';
type Path = string | string[];
type UseDraco = boolean | string;
type UseMeshopt = boolean;
type ExtendLoader = (loader: GLTFLoader) => void;
export declare const useGLTF: {
<T extends Path>(path: T, useDraco?: UseDraco, useMeshopt?: UseMeshopt, extendLoader?: ExtendLoader): T extends any[] ? (GLTF & ObjectMap)[] : GLTF & ObjectMap;
preload(path: Path, useDraco?: UseDraco, useMeshopt?: UseMeshopt, extendLoader?: ExtendLoader): void;
clear(path: Path): void;
setDecoderPath(path: string): void;
};
export type GltfProps = Omit<CloneProps, 'object'> & {
src: string;
useDraco?: UseDraco;
useMeshOpt?: UseMeshopt;
extendLoader?: ExtendLoader;
};
export declare const Gltf: React.ForwardRefExoticComponent<Omit<CloneProps, "object"> & {
src: string;
useDraco?: UseDraco;
useMeshOpt?: UseMeshopt;
extendLoader?: ExtendLoader;
} & React.RefAttributes<import("three").Group<import("three").Object3DEventMap>>>;
export {};