Cotal TypeScript packages
    Preparing search index...

    Interface SpaceSettings<S>

    How a host reads the per-space settings of a version 2 manifest.

    interface SpaceSettings<S> {
        across?(settings: ReadonlyMap<string, S>): void;
        parse(space: string, fields: Readonly<Record<string, unknown>>): S;
    }

    Type Parameters

    • S
    Index
    • Refuse entries that conflict with each other, such as two spaces naming one port.

      Parameters

      • settings: ReadonlyMap<string, S>

      Returns void

    • Parse one entry's fields other than space, or throw naming what is wrong. Return a JSON value built in a fixed key order: the host compares two parses as JSON to tell whether a live lane's settings changed.

      Parameters

      • space: string
      • fields: Readonly<Record<string, unknown>>

      Returns S