This repository has been archived by the owner on Jul 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
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
f999e03
commit a3a242f
Showing
6 changed files
with
51 additions
and
6 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/// <reference types="svelte" /> | ||
|
||
import { SvelteComponentTyped } from 'svelte' | ||
import Router from 'easyroute-core' | ||
|
||
export interface RouterOutletProps | ||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div']> { | ||
/** | ||
* @default null | ||
*/ | ||
transition?: string | null | ||
|
||
/** | ||
* @default false | ||
*/ | ||
forceRemount?: boolean | ||
|
||
/** | ||
* default "default" | ||
*/ | ||
name?: string | ||
} | ||
|
||
export interface RouterLinkProps | ||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['a']> { | ||
to: string | ||
} | ||
|
||
export default Router | ||
export class RouterOutlet extends SvelteComponentTyped<RouterOutletProps> {} | ||
export class RouterLink extends SvelteComponentTyped<RouterLinkProps> {} | ||
export class EasyrouteProvider extends SvelteComponentTyped<{ | ||
router: Router | ||
}> {} |