Skip to content

Commit ddf7d79

Browse files
committed
Fix alphabetization in Glossary
1 parent 9c955c5 commit ddf7d79

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/Glossary.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ This is a glossary of common terms used in the React Router codebase and documen
1111
* [LocationDescriptor](#locationdescriptor)
1212
* [LocationKey](#locationkey)
1313
* [LocationState](#locationstate)
14+
* [Params](#params)
1415
* [Path](#path)
1516
* [Pathname](#pathname)
16-
* [Params](#params)
1717
* [Query](#query)
1818
* [QueryString](#querystring)
1919
* [RedirectFunction](#redirectfunction)
@@ -127,6 +127,14 @@ This type gets its name from the first argument to HTML5's [`pushState`][pushSta
127127
[pushState]: https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_pushState()_method
128128
[replaceState]: https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_replaceState()_method
129129
130+
## Params
131+
132+
```js
133+
type Params = Object;
134+
```
135+
136+
The word *params* refers to an object of key/value pairs that were parsed out of the original URL's [pathname](#pathname). The values of this object are typically strings, unless there is more than one param with the same name in which case the value is an array.
137+
130138
## Path
131139
132140
```js
@@ -143,14 +151,6 @@ type Pathname = string;
143151
144152
A *pathname* is the portion of a URL that describes a hierarchical path, including the preceding `/`. For example, in `http://example.com/the/path?the=query`, `/the/path` is the pathname. It is synonymous with `window.location.pathname` in web browsers.
145153

146-
## QueryString
147-
148-
```js
149-
type QueryString = string;
150-
```
151-
152-
A *query string* is the portion of the URL that follows the [pathname](#pathname), including any preceding `?`. For example, in `http://example.com/the/path?the=query`, `?the=query` is the query string. It is synonymous with `window.location.search` in web browsers.
153-
154154
## Query
155155

156156
```js
@@ -159,13 +159,13 @@ type Query = Object;
159159

160160
A *query* is the parsed version of a [query string](#querystring).
161161

162-
## Params
162+
## QueryString
163163

164164
```js
165-
type Params = Object;
165+
type QueryString = string;
166166
```
167167

168-
The word *params* refers to an object of key/value pairs that were parsed out of the original URL's [pathname](#pathname). The values of this object are typically strings, unless there is more than one param with the same name in which case the value is an array.
168+
A *query string* is the portion of the URL that follows the [pathname](#pathname), including any preceding `?`. For example, in `http://example.com/the/path?the=query`, `?the=query` is the query string. It is synonymous with `window.location.search` in web browsers.
169169

170170
## RedirectFunction
171171

0 commit comments

Comments
 (0)