-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(assert): missing toc update (#1167)
* docs(assert): missing toc update * docs: rebuild
- Loading branch information
1 parent
13a4d99
commit bfd78a3
Showing
47 changed files
with
824 additions
and
656 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,5 @@ | ||
--- | ||
"@httpx/assert": patch | ||
--- | ||
|
||
Add missing documentation in TOC |
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 |
---|---|---|
|
@@ -52,7 +52,7 @@ | |
], | ||
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"@belgattitude/eslint-config-bases": "5.4.1", | ||
"@belgattitude/eslint-config-bases": "5.5.0", | ||
"@changesets/changelog-github": "0.5.0", | ||
"@changesets/cli": "2.27.1", | ||
"@commitlint/cli": "19.3.0", | ||
|
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
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,61 @@ | ||
[@httpx/assert - v0.9.0](../README.md) / http.asserts | ||
|
||
# Module: http.asserts | ||
|
||
## Table of contents | ||
|
||
### Functions | ||
|
||
- [assertHttpMethod](http_asserts.md#asserthttpmethod) | ||
- [assertHttpValidMethod](http_asserts.md#asserthttpvalidmethod) | ||
|
||
## Functions | ||
|
||
### assertHttpMethod | ||
|
||
▸ **assertHttpMethod**\<`T`\>(`method`, `v`, `msgOrErrorFactory?`): asserts v is T | ||
|
||
#### Type parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `T` | extends [`HttpMethod`](http_types.md#httpmethod) | | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `method` | `T` | | ||
| `v` | `unknown` | | ||
| `msgOrErrorFactory?` | `MsgOrErrorFactory` | | ||
|
||
#### Returns | ||
|
||
asserts v is T | ||
|
||
**`Throws`** | ||
|
||
TypeError | ||
|
||
___ | ||
|
||
### assertHttpValidMethod | ||
|
||
▸ **assertHttpValidMethod**(`v`, `msgOrErrorFactory?`): asserts v is HttpMethod | ||
|
||
Assert the value is a valid http method (case-insensitive) | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `v` | `unknown` | | ||
| `msgOrErrorFactory?` | `MsgOrErrorFactory` | | ||
|
||
#### Returns | ||
|
||
asserts v is HttpMethod | ||
|
||
**`Throws`** | ||
|
||
TypeError |
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,15 @@ | ||
[@httpx/assert - v0.9.0](../README.md) / http.consts | ||
|
||
# Module: http.consts | ||
|
||
## Table of contents | ||
|
||
### Variables | ||
|
||
- [httpMethods](http_consts.md#httpmethods) | ||
|
||
## Variables | ||
|
||
### httpMethods | ||
|
||
• `Const` **httpMethods**: readonly [``"GET"``, ``"POST"``, ``"HEAD"``, ``"PUT"``, ``"DELETE"``, ``"CONNECT"``, ``"OPTIONS"``, ``"PATCH"``, ``"TRACE"``] |
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,52 @@ | ||
[@httpx/assert - v0.9.0](../README.md) / http.guards | ||
|
||
# Module: http.guards | ||
|
||
## Table of contents | ||
|
||
### Functions | ||
|
||
- [isHttpMethod](http_guards.md#ishttpmethod) | ||
- [isHttpValidMethod](http_guards.md#ishttpvalidmethod) | ||
|
||
## Functions | ||
|
||
### isHttpMethod | ||
|
||
▸ **isHttpMethod**\<`T`\>(`method`, `v`): v is T | ||
|
||
#### Type parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `T` | extends [`HttpMethod`](http_types.md#httpmethod) | | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `method` | `T` | | ||
| `v` | `unknown` | | ||
|
||
#### Returns | ||
|
||
v is T | ||
|
||
___ | ||
|
||
### isHttpValidMethod | ||
|
||
▸ **isHttpValidMethod**(`v`): v is HttpMethod | ||
|
||
Check whether the value is a valid http method (GET, PUT...) in | ||
a case-insensitive manner. | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `v` | `unknown` | | ||
|
||
#### Returns | ||
|
||
v is HttpMethod |
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,15 @@ | ||
[@httpx/assert - v0.9.0](../README.md) / http.types | ||
|
||
# Module: http.types | ||
|
||
## Table of contents | ||
|
||
### Type Aliases | ||
|
||
- [HttpMethod](http_types.md#httpmethod) | ||
|
||
## Type Aliases | ||
|
||
### HttpMethod | ||
|
||
Ƭ **HttpMethod**: ``"GET"`` \| ``"POST"`` \| ``"HEAD"`` \| ``"PUT"`` \| ``"DELETE"`` \| ``"CONNECT"`` \| ``"OPTIONS"`` \| ``"PATCH"`` \| ``"TRACE"`` |
Oops, something went wrong.