Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions match/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import * as preact from 'preact';

import { Link as StaticLink, RoutableProps } from '..';
import { RoutableProps } from '..';

export class Match extends preact.Component<RoutableProps, {}> {
type MatchInfo = {
url: string;
path: string;
matches: Record<string, string>;
};

type MatchProps = RoutableProps & {
children: (info: MatchInfo) => preact.VNode;
};

export class Match extends preact.Component<MatchProps, {}> {
render(): preact.VNode;
}

Expand Down
2 changes: 1 addition & 1 deletion test/match.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { h } from 'preact';
import { Link, RoutableProps } from '../';
import { Link } from '../';
import { Match } from '../match';

function ChildComponent({}: {}) {
Expand Down