Skip to content

Commit

Permalink
moved deprecated package to the end of the page
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech committed May 3, 2024
1 parent 8ca2100 commit 01705a6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/api-bridges.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,17 @@ const schema = new SimpleSchema({
const bridge = new SimpleSchema2Bridge({ schema });
```

## `ZodBridge`

```tsx
import ZodBridge from 'uniforms-bridge-zod';
import z from 'zod';

const schema = z.object({ aboutMe: z.string() });

const bridge = new ZodBridge({ schema });
```

## `SimpleSchemaBridge`

:::caution
Expand Down Expand Up @@ -257,14 +268,3 @@ const schema = new SimpleSchema({

const bridge = new SimpleSchemaBridge({ schema });
```

## `ZodBridge`

```tsx
import ZodBridge from 'uniforms-bridge-zod';
import z from 'zod';

const schema = z.object({ aboutMe: z.string() });

const bridge = new ZodBridge({ schema });
```

0 comments on commit 01705a6

Please sign in to comment.