Lynx

Home > @lynx-js/genui-a2ui > resolveCatalog

resolveCatalog() function

Build a name → component lookup map from a catalog. The renderer uses this to resolve { component: 'Text', ... } from the protocol stream.

Signature:

export declare function resolveCatalog(
  catalog: Catalog,
): ReadonlyMap<string, CatalogComponent>;

Parameters

Parameter

Type

Description

catalog

Catalog

Returns:

ReadonlyMap<string, CatalogComponent>

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.