@nodescript/stdlib
Version:
Standard Node Definitions
20 lines (19 loc) • 498 B
TypeScript
import { SubgraphModuleCompute, SubgraphModuleDefinition } from '@nodescript/core/types';
type P = {
array: unknown[];
scope: Record<string, any>;
};
type R = Promise<unknown>;
type SI = {
item: unknown;
index: number;
[key: string]: unknown;
};
type SO = {
resume: boolean;
result: unknown;
[key: string]: unknown;
};
export declare const module: SubgraphModuleDefinition<P, R, SI, SO>;
export declare const compute: SubgraphModuleCompute<P, R, SI, SO>;
export {};