Documentation
    Preparing search index...

    Function resolveMockHandler

    • The implicit dispatch target for a role: the user default when it is an eligible candidate, else the sole candidate, else null (a chooser would be needed).

      Parameters

      • napplets: readonly MockNapplet[]

        Installed napplets.

      • archetype: string

        Role slug.

      • defaults: ReadonlyMap<string, string>

        User default handler per archetype.

      Returns string | null

      Catalog id or null.

      resolveMockHandler(MOCK_NAPPLETS, 'profile', new Map()) === 'catalog-profile-viewer';