MatchFunction type
Home > @rimitive/router > MatchFunction
MatchFunction type
Section titled “MatchFunction type”Match function type
Signature:
export type MatchFunction<TBaseElement> = { <T, TElement extends TBaseElement>(reactive: Reactive<T>, matcher: (value: T) => RefSpec<TElement> | null): RefSpec<TElement>;};