Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
vbudovski committed Dec 25, 2024
1 parent 4604c5b commit c20046b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions paseri-docs/src/components/Playground.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
import * as p from '../../../paseri-lib/src/index';
const { schema, data } = Astro.props;
const result = new Function('p', `return ${schema}.parse(${data})`)(p);
---

<div>{schema}{result}</div>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ sidebar:
order: 1
---

import Playground from '../../../../../components/Playground.astro'

<Playground schema="p.number()" data="123" />

```typescript
import * as p from '@vbudovski/paseri';

Expand Down

0 comments on commit c20046b

Please sign in to comment.