# PortEntry

What the registry holds for one port.

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

## Signature

```ts
import type { PortEntry } from "@mapcairn/core/contracts";
 
interface PortEntry<K extends PortName>
```

## Type parameters

- `K` (`PortName`)

## Properties

### createFake

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

Builds the fake for this port.

### runContract

```ts
readonly runContract: PortContractRunners[K];
```

Registers the shared contract suite for this port.

## See also

- [`PortName`](https://docs.mapcairn.com/api/core/contracts/PortName.md)
- [`Services`](https://docs.mapcairn.com/api/core/Services.md)
- [`PortContractRunners`](https://docs.mapcairn.com/api/core/contracts/PortContractRunners.md)

Source: [packages/core/src/contracts/portRegistry.ts:153](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/contracts/portRegistry.ts#L153)
