Metakit / @doeixd/metakit/operation

implementations

function · packages/metakit/src/operationImplementations.ts:80

function implementations<const List extends ReadonlyArray<Implementation>>(
  name: string,
  ...list: List
): OperationImplementations<BindingKey<List[number]['op']>>

Collect implementations under a name (used in reports and obligation names). Refuses two implementations for the same id@version. A derived operation's implementation brings along the implementations it was defined with, each under its own key unless the list gives that key, so an interpreter allowlist governs them like any other.