UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

18 lines (17 loc) 681 B
import { GeoprocessingTask } from "../aws/tasks.js"; import { GeoprocessingRequestParams } from "../types/index.js"; interface FunctionState<ResultType> { /** Populated as soon as the function request returns */ task?: GeoprocessingTask<ResultType>; loading: boolean; error?: string; } /** * Runs the given geoprocessing function for the current sketch, as defined by ReportContext * During testing, useFunction will look for example output values in SketchContext.exampleOutputs */ export declare const useFunction: { <ResultType>(functionTitle: string, extraParams?: GeoprocessingRequestParams): FunctionState<ResultType>; reset(): void; }; export {};