ViewRegistry type alias

Module @runic-artifex/vue in @runic-artifex/vue 0.23.0

type ViewRegistry<R extends PageReference | null | undefined> = {
    readonly [K in NonNullable<R>["kind"]]: PageComponent<ViewRegistryPage<R, K>>;
};

A build-known map checks each generated reference kind against its component's page prop. A nullable reference, such as a region slot's State["main"], checks its non-null kinds. A component whose page is a shared page reference ([RunicSharedClient]), such as ResultPagePageReference, registers for each of its kinds.