Skip to content

TypedGraphOperation

TypeScript helperstypeOpenCV 5.0.0
import type { TypedGraphOperation } from '@banou/opencv-wasm'

A native operation with its exact node tuple and callback signature preserved by TypeScript.

export type TypedGraphOperation<Inputs extends GraphPorts, Outputs extends GraphPorts> = Omit<GTypedOperation, 'on' | 'kernel' | 'clone'> & {
    on(inputs: Readonly<GraphNodes<Inputs>>): GraphNodes<Outputs>;
    kernel(run: TypedGraphKernel<Inputs, Outputs>): GKernelPackage;
    clone(): TypedGraphOperation<Inputs, Outputs>;
};

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.