ViewRegistryPage type alias

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

type ViewRegistryPage<R extends PageReference | null | undefined, K> = Extract<NonNullable<R>, {
    readonly kind: K;
}> | SharedPageReferences<Extract<NonNullable<R>, {
    readonly kind: K;
}>>;

The page types that a ViewRegistry entry for kind K of R may accept: the kind's own reference and each shared page reference it extends. The frameworks map each to a component type, so a component whose page is a shared reference registers for every kind of that reference.