Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0e04ed1

Browse filesBrowse files
committed
rename Symbol to symbol, type typo
1 parent 1cbc78d commit 0e04ed1
Copy full SHA for 0e04ed1

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎active-rfcs/0000-router-dynamic-routing.md

Copy file name to clipboardExpand all lines: active-rfcs/0000-router-dynamic-routing.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
Introducing an API that allows adding and removing route records while the router is working
99

1010
- `router.addRoute(route: RouteRecord)` Add a new route
11-
- `router.removeRoute(name: string | Symbol)` Remove an existing route
12-
- `router.hasRoute(name: string | Symbol): boolean` Check if a route exists
11+
- `router.removeRoute(name: string | symbol)` Remove an existing route
12+
- `router.hasRoute(name: string | symbol): boolean` Check if a route exists
1313
- `router.getRoutes(): RouteRecord[]` Get the current list of routes
1414

1515
# Basic example
@@ -115,7 +115,7 @@ router.addRoute('ParentRoute', routeRecord)
115115

116116
```ts
117117
interface addRoute {
118-
(parentName: string | Symbol, route: RouteRecord): () => void
118+
(parentName: string | symbol, route: RouteRecord): () => void
119119
(route: RouteRecord): () => void
120120
}
121121
```
@@ -126,7 +126,7 @@ Removing a route removes all its children as well. As with `addRoute`, it's nece
126126

127127
```ts
128128
interface removeRoute {
129-
(name: string | Symbol): () => void
129+
(name: string | symbol): void
130130
}
131131
```
132132

@@ -136,7 +136,7 @@ Checks if a route exists:
136136

137137
```ts
138138
interface hasRoute {
139-
(name: string | Symbol): boolean
139+
(name: string | symbol): boolean
140140
}
141141
```
142142

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.