UNPKG

@vctrl/hooks

Version:

vctrl/hooks is a React hooks package designed to simplify 3D model loading and management within React applications. It's part of the vectreal-core ecosystem and is primarily used in the vctrl/viewer React component and the official website application.

6 lines (5 loc) 524 B
import { StructuredLoadError } from './types'; export declare const createStructuredLoadError: ({ code, message, recoverable, source, cause, context }: StructuredLoadError) => StructuredLoadError; export declare const toErrorMessage: (error: unknown) => string; export declare const normalizeLocalLoadError: (error: unknown, code: StructuredLoadError["code"], context?: Record<string, unknown>) => StructuredLoadError; export declare const normalizeServerLoadError: (error: unknown, sceneId: string) => StructuredLoadError;