diff --git a/match/index.d.ts b/match/index.d.ts index d2627ae..012cec6 100644 --- a/match/index.d.ts +++ b/match/index.d.ts @@ -2,7 +2,13 @@ import * as preact from 'preact'; import { Link as StaticLink, RoutableProps } from '..'; -export class Match extends preact.Component { +export type MatchChildrenProps = { + matches: boolean; + url: string; + path: string; +} + +export class Match extends preact.Component & { children: (MatchChildrenProps) => preact.ComponentChildren }, {}> { render(): preact.VNode; }