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
16 lines (13 loc) • 331 B
text/typescript
import {Context} from 'react'
/**
* @internal
* @hidden
*/
export declare function createContext<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 {}