UNPKG

1e14

Version:

Minimal API for building function graphs

23 lines (22 loc) 450 B
import { Node } from "../types"; export declare type In<V> = { /** * Value to be forwarded. */ d_val: V; }; export declare type Out<V> = { /** * Forwarded input value. */ d_val: V; }; /** * Forwards input value unconditionally. * @link https://github.com/1e14/1e14/wiki/Noop */ export declare type Noop<V> = Node<In<V>, Out<V>>; /** * Creates a Noop node. */ export declare function createNoop<V>(): Noop<V>;