Skip to main content

OPTIONAL_PORT_NAMES

The ports a host may leave out. Each is an optional key of Services, so the ui must work without it. The reference host builds a real adapter for each of these except the ones in HOST_SUPPLIED_PORT_NAMES.

This is a constant exported by @mapcairn/core/contracts, checked against version 0.2.0.

Signature​

import { OPTIONAL_PORT_NAMES } from "@mapcairn/core/contracts";

OPTIONAL_PORT_NAMES: readonly ["featureQuery", "fileOpener", "routing", "selection", "suggestions"]

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