@threlte/core
Version:
A 3D framework for the web, built on top of Svelte and Three.js
11 lines (10 loc) • 440 B
TypeScript
import { type CurrentWritable } from '../../utilities/index.js';
export type ThrelteUserContext = CurrentWritable<Record<string | symbol, unknown>>;
export declare const createUserContext: () => ThrelteUserContext;
/**
* ### `useUserContext`
*
* @returns The user context store. The context is to be used with
* `useThrelteUserContext` to set and get the user context.
*/
export declare const useUserContext: () => ThrelteUserContext;