MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / declare

Function declare

src/compute-engine/free-functions.ts:118–125  ·  view source on GitHub ↗
(
  arg1:
    | string
    | { [id: string]: Type | TypeString | Partial<SymbolDefinition> },
  arg2?: Type | TypeString | Partial<SymbolDefinition>
)

Source from the content-addressed store, hash-verified

116 [id: string]: Type | TypeString | Partial<SymbolDefinition>;
117}): void;
118export function declare(
119 arg1:
120 | string
121 | { [id: string]: Type | TypeString | Partial<SymbolDefinition> },
122 arg2?: Type | TypeString | Partial<SymbolDefinition>
123): void {
124 getDefaultEngine().declare(arg1 as any, arg2 as any);
125}
126
127export function assign(id: string, value: AssignValue): void;
128export function assign(ids: { [id: string]: AssignValue }): void;

Callers

nothing calls this directly

Calls 2

getDefaultEngineFunction · 0.85
declareMethod · 0.65

Tested by

no test coverage detected