diff options
Diffstat (limited to 'preact-router/src/match.d.ts')
-rw-r--r-- | preact-router/src/match.d.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/preact-router/src/match.d.ts b/preact-router/src/match.d.ts new file mode 100644 index 0000000..9d800c3 --- /dev/null +++ b/preact-router/src/match.d.ts @@ -0,0 +1,16 @@ +import * as preact from 'preact'; + +import { Link as StaticLink, RoutableProps } from './'; + +export class Match extends preact.Component<RoutableProps, {}> { + render(): preact.VNode; +} + +export interface LinkProps extends preact.JSX.HTMLAttributes { + activeClassName?: string; + children?: preact.ComponentChildren; +} + +export function Link(props: LinkProps): preact.VNode; + +export default Match; |