-
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.
- Loading branch information
Showing
14 changed files
with
152 additions
and
128 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@skunkteam/types](./types.md) > [autoCast](./types.autocast.md) | ||
|
||
## autoCast() function | ||
|
||
Returns the same type, but with an auto-casting default parser installed. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
declare function autoCast<T extends BaseTypeImpl<unknown>>(type: T): T; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --------- | ---- | ----------- | | ||
| type | T | | | ||
|
||
**Returns:** | ||
|
||
T | ||
|
||
## Remarks | ||
|
||
Each type implementation provides its own auto-cast rules. See builtin types for examples of auto-cast rules. |
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,27 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@skunkteam/types](./types.md) > [autoCastAll](./types.autocastall.md) | ||
|
||
## autoCastAll() function | ||
|
||
Create a recursive autocasting version of the given type. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
declare function autoCastAll<T extends BaseTypeImpl<unknown>>(type: T): T; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --------- | ---- | ----------- | | ||
| type | T | | | ||
|
||
**Returns:** | ||
|
||
T | ||
|
||
## Remarks | ||
|
||
This will replace any parser in the nested structure with the appropriate autocaster when applicable. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
**Signature:** | ||
|
||
```typescript | ||
details: OneOrMore<FailureDetails>; | ||
readonly details: OneOrMore<FailureDetails>; | ||
``` |
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 |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
**Signature:** | ||
|
||
```typescript | ||
input: unknown; | ||
readonly input: unknown; | ||
``` |
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 |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
**Signature:** | ||
|
||
```typescript | ||
type: BaseTypeImpl<unknown>; | ||
readonly type: BaseTypeImpl<unknown>; | ||
``` |