Documentation
    Preparing search index...

    Interface MockDomainEntry

    One row of the mock registry.

    const entry: MockDomainEntry = {
    domain: 'link',
    kind: 'service',
    spec: LINK_SPEC_REF,
    create: (options) => createMockLinkService(options),
    };
    interface MockDomainEntry {
        create?: (options: MockServiceOptions) => MockService;
        domain: string;
        kind: MockDomainKind;
        note?: string;
        spec: NapSpecRef;
    }
    Index

    Properties

    create?: (options: MockServiceOptions) => MockService

    Factory for service/extension kinds. Absent for other kinds.

    domain: string

    Wire domain (message.type prefix), or the NAP slug for non-wire docs.

    Routing kind.

    note?: string

    Short note for kinds without a service factory.

    Spec document checked when the mock was written.