ConnectionInput<T>: {
    entity: string;
    options?: ConnectOptions;
    target: ((...args: any[]) => T);
}

Connect a function to the operational data layer.

Type Parameters

  • T

    the return type of the connected function

Type declaration

  • entity: string

    The connected function's entity identifier

    user
    
  • Optionaloptions?: ConnectOptions

    Extended connection options (e.g., ttl, taskQueue)

    { ttl: 'infinity' }
    
  • target: ((...args: any[]) => T)

    The target function reference

    function() { return "hello world" }
    
      • (...args): T
      • Parameters

        • Rest...args: any[]

        Returns T