diff --git a/match/index.d.ts b/match/index.d.ts index 13e617a..4cdadcc 100644 --- a/match/index.d.ts +++ b/match/index.d.ts @@ -1,8 +1,18 @@ import * as preact from 'preact'; -import { Link as StaticLink, RoutableProps } from '..'; +import { RoutableProps } from '..'; -export class Match extends preact.Component { +type MatchInfo = { + url: string; + path: string; + matches: Record; +}; + +type MatchProps = RoutableProps & { + children: (info: MatchInfo) => preact.VNode; +}; + +export class Match extends preact.Component { render(): preact.VNode; } diff --git a/test/match.tsx b/test/match.tsx index d520646..243f89b 100644 --- a/test/match.tsx +++ b/test/match.tsx @@ -1,5 +1,5 @@ import { h } from 'preact'; -import { Link, RoutableProps } from '../'; +import { Link } from '../'; import { Match } from '../match'; function ChildComponent({}: {}) {