sinclairzx81/typebox
### [`v0.24.7`](https://togithub.com/sinclairzx81/typebox/compare/0.24.6...0.24.7)
[Compare Source](https://togithub.com/sinclairzx81/typebox/compare/0.24.6...0.24.7)
### [`v0.24.6`](https://togithub.com/sinclairzx81/typebox/blob/HEAD/changelog.md#0246-httpswwwnpmjscompackagesinclairtypeboxv0246)
[Compare Source](https://togithub.com/sinclairzx81/typebox/compare/0.24.5...0.24.6)
Added:
- TypeBox now offers a `TypeGuard` module for structurally checking TypeBox schematics. This module can be used in runtime type reflection scenarios where it's helpful to test a schema is of a particular form. This module can be imported under the `@sinclair/typebox/guard` import path.
Example:
```typescript
import { TypeGuard } from '@sinclair/typebox/guard'
const T: any = {} // T is any
const { type } = T // unsafe: type is any
if(TypeGuard.TString(T)) {
const { type } = T // safe: type is 'string'
}
```
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
0.24.5
->0.24.7
Release Notes
sinclairzx81/typebox
### [`v0.24.7`](https://togithub.com/sinclairzx81/typebox/compare/0.24.6...0.24.7) [Compare Source](https://togithub.com/sinclairzx81/typebox/compare/0.24.6...0.24.7) ### [`v0.24.6`](https://togithub.com/sinclairzx81/typebox/blob/HEAD/changelog.md#0246-httpswwwnpmjscompackagesinclairtypeboxv0246) [Compare Source](https://togithub.com/sinclairzx81/typebox/compare/0.24.5...0.24.6) Added: - TypeBox now offers a `TypeGuard` module for structurally checking TypeBox schematics. This module can be used in runtime type reflection scenarios where it's helpful to test a schema is of a particular form. This module can be imported under the `@sinclair/typebox/guard` import path. Example: ```typescript import { TypeGuard } from '@sinclair/typebox/guard' const T: any = {} // T is any const { type } = T // unsafe: type is any if(TypeGuard.TString(T)) { const { type } = T // safe: type is 'string' } ```Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.