Skip to content

Commit

Permalink
fix: #177
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Dec 6, 2024
1 parent 546e826 commit 6d6aa07
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { RiotComponentWrapper, RiotComponent } from 'riot'
import { URLWithParams } from 'rawth'

export * from 'rawth'
export type Route = RiotComponentWrapper<

export declare const Route: RiotComponentWrapper<
RiotComponent<{
path: string
'on-before-mount'?: (path: URLWithParams) => void
Expand All @@ -11,13 +12,15 @@ export type Route = RiotComponentWrapper<
'on-unmounted'?: (path: URLWithParams) => void
}>
>
export type Router = RiotComponentWrapper<

export declare const Router: RiotComponentWrapper<
RiotComponent<{
base?: string
'initial-route'?: string
'on-started'?: (route: string) => void
}>
>

export declare function getCurrentRoute(): string
export declare function initDomListeners(): void
export declare function setBase(base: string): void

0 comments on commit 6d6aa07

Please sign in to comment.