Skip to content

LinkFunction type

Home > @rimitive/router > LinkFunction

Link function type

Link is DOM-only - no need for generic adapter abstraction

Signature:

export type LinkFunction = (props: ElementProps<DOMAdapterConfig, 'a'> & {
href: string;
}) => (...children: ElRefSpecChild[]) => RefSpec<HTMLAnchorElement>;

References: ElRefSpecChild, RefSpec