Skip to content

Commit

Permalink
fix(typebox): Upgrade to TypeBox 0.26.0 (#3113)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Apr 3, 2023
1 parent c47349b commit d1d9598
Show file tree
Hide file tree
Showing 6 changed files with 1,974 additions and 1,930 deletions.
10 changes: 10 additions & 0 deletions docs/api/schema/typebox.md
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,16 @@ const T = {
}
```

<BlockQuote type="warning" label="note">

TypeBox 0.26.0 introduced a breaking change in `Type.Intersect`. `@feathersjs/typebox` maintains the original behaviour which is now available in TypeBox as `Type.Composite`. It you want to use the new `Type.Intersect` use

```ts
import { Intersect } from '@feathersjs/typebox'
```

</BlockQuote>

##### Never

Creates a type that will never validate if the attribute is present. This is useful if you are allowing [additionalProperties](#additionalproperties) but need to prevent using specific keys.
Expand Down

0 comments on commit d1d9598

Please sign in to comment.