UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

15 lines (14 loc) 436 B
import type { DataType, UUID } from '../dt/index.js'; import type { Value } from './value.js'; /** * Base interface all the use case OPI interfaces must extend */ export interface UCOPIBase { id: UUID; } /** * A value returned as part of an OPI * * Unlike {@link UCInputFieldValue}, it cannot be `undefined` because it is not serializable in JSON. */ export type UCOPIValue<T extends DataType> = Exclude<Value<T>, undefined>;