Skip to main content

PORT_NAMES

Every key of Services, kept by hand. The satisfies clause rejects a name that is not a service, and PortsAreExhaustive rejects a service missing from this list, so adding a service without updating the list is a type error.

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

Signature​

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

PORT_NAMES: readonly ["createMapAdapter", "search", "suggestions", "location", "settings", "clipboard", "fileSaver", "fileOpener", "url", "theme", "messages", "preferences", "layers", "layerSource", "routing", "selection", "featureQuery"]

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