-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0d15f0
commit d8da1fe
Showing
4 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { RiotComponentWrapper, RiotComponent } from 'riot' | ||
import { URLWithParams } from 'rawth' | ||
|
||
export * from 'rawth' | ||
export type Route = RiotComponentWrapper< | ||
RiotComponent<{ | ||
path: string | ||
'on-before-mount'?: (path: URLWithParams) => void | ||
'on-mounted'?: (path: URLWithParams) => void | ||
'on-before-unmount'?: (path: URLWithParams) => void | ||
'on-unmounted'?: (path: URLWithParams) => void | ||
}> | ||
> | ||
export type 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters