Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Nov 26, 2024
1 parent 3a1f5d9 commit dd629bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1325,15 +1325,15 @@ const B = Value.Encode(Type.String(), 42) // throw
### Parse
Use the Parse function to parse a value. This function calls the Value functions `Clone` `Clean`, `Default`, `Convert`, `Assert` and `Decode` in this order to process a value.
Use the Parse function to parse a value. This function calls the `Clone` `Clean`, `Default`, `Convert`, `Assert` and `Decode` Value functions in this exact order to process a value.
```typescript
const R = Value.Parse(Type.String(), 'hello') // const R: string = "hello"

const E = Value.Parse(Type.String(), undefined) // throws AssertError
```
You can override the order in which functions are are run, or omit functions entirely in the following way.
You can override the order in which functions are are run, or omit functions entirely in the following way.
```typescript
// Runs no functions.
Expand Down

0 comments on commit dd629bf

Please sign in to comment.