Skip to main content

PortEntry

What the registry holds for one port.

This is an interface exported by @mapcairn/core/contracts, checked against version 0.2.0.

Signature​

import type { PortEntry } from "@mapcairn/core/contracts";

interface PortEntry<K extends PortName>

Type parameters​

  • K (PortName)

Properties​

createFake​

readonly createFake: () => NonNullable<Services[K]>;

Builds the fake for this port.

runContract​

readonly runContract: PortContractRunners[K];

Registers the shared contract suite for this port.

See also​

Source: packages/core/src/contracts/portRegistry.ts:153