Skip to main content
Glama
index.d.ts1.02 kB
import * as React from 'react'; declare function createContext<ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType): readonly [React.FC<ContextValueType & { children: React.ReactNode; }>, (consumerName: string) => ContextValueType]; type Scope<C = any> = { [scopeName: string]: React.Context<C>[]; } | undefined; type ScopeHook = (scope: Scope) => { [__scopeProp: string]: Scope; }; interface CreateScope { scopeName: string; (): ScopeHook; } declare function createContextScope(scopeName: string, createContextScopeDeps?: CreateScope[]): readonly [<ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType) => readonly [React.FC<ContextValueType & { scope: Scope<ContextValueType>; children: React.ReactNode; }>, (consumerName: string, scope: Scope<ContextValueType | undefined>) => ContextValueType], CreateScope]; export { type CreateScope, type Scope, createContext, createContextScope };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kkShrihari/miEAA3_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server