sanity
Version:
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
12 lines (11 loc) • 371 B
TypeScript
import { Context } from "react";
/**
* @internal
* @hidden
*/
declare function createGlobalScopedContext<ContextType, const T extends ContextType = ContextType>(
/**
* It's important to prefix these keys as they are global
*/
key: `sanity/_singletons/context/${string}`, defaultValue: T): Context<ContextType>;
export { createGlobalScopedContext as createContext };