File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed
Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ # @usf-org/schema
2+
3+ Zod schema for USF.
4+
5+ ## Usage
6+
7+ ``` ts
8+ import { Schema } from ' @usf-org/schema'
9+
10+ const schema = Schema .safeParse ({})
11+ ```
12+
13+ You also can use ` toJsonSchema ` to get the JSON Schema of the schema.
14+
15+ ``` ts
16+ import { toJsonSchema } from ' @usf-org/schema'
17+
18+ const jsonSchema = toJsonSchema (Schema )
19+ ```
20+
21+ ## License
22+
23+ [ MIT] ( ../../LICENSE )
Original file line number Diff line number Diff line change 11{
22 "name" : " @usf-org/zod" ,
33 "type" : " module" ,
4- "version" : " 0.0.1 " ,
4+ "version" : " 0.0.2 " ,
55 "description" : " Zod schema for USF." ,
66 "author" : " Naily Zero <zero@naily.cc> (https://naily.cc)" ,
7+ "license" : " MIT" ,
8+ "homepage" : " https://github.com/USF-org/USF-TS" ,
9+ "repository" : {
10+ "type" : " git" ,
11+ "url" : " https://github.com/USF-org/USF-TS.git" ,
12+ "directory" : " packages/schema"
13+ },
14+ "bugs" : {
15+ "url" : " https://github.com/USF-org/USF-TS/issues" ,
16+ "email" : " zero@naily.cc"
17+ },
718 "keywords" : [
819 " zod" ,
920 " schema" ,
1930 "main" : " ./dist/index.cjs" ,
2031 "module" : " ./dist/index.js" ,
2132 "types" : " ./dist/index.d.ts" ,
33+ "files" : [
34+ " dist"
35+ ],
36+ "engines" : {
37+ "node" : " >16"
38+ },
2239 "scripts" : {
2340 "build" : " tsup" ,
2441 "watch" : " tsup -w" ,
You can’t perform that action at this time.
0 commit comments