Initial project import
This commit is contained in:
27
node_modules/@react-three/drei/core/Gltf.d.ts
generated
vendored
Normal file
27
node_modules/@react-three/drei/core/Gltf.d.ts
generated
vendored
Normal 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 {};
|
||||
Reference in New Issue
Block a user