UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

8 lines (7 loc) 422 B
import type { UCInput } from './input.js'; import type { UCOPIBase } from './opi.js'; import type { UCOutputOrNothing } from './output.js'; import type { UC } from './UC.js'; export interface UCTransporter { send<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined>(uc: UC<I, OPI0, OPI1>): Promise<UCOutputOrNothing<OPI0, OPI1>>; }