Guide for creating new API reference pages at website/src/routes/api/.
Categories: (schemas), (actions), (methods), (types), (utils), (async), (storages)
| Primitive | 'string', 'number', 'boolean', 'unknown', etc. | | Literal string | { type: 'string', value: 'email' } | | Literal number | { type: 'number', value: 5 } | | Custom/Named | { type: 'custom', name: 'TypeName', href: '../TypeName/', generics: [...] } | | Custom+modifier | { type: 'custom', modifier: 'typeof', name: 'string', href: '../string/' } |
Valibot Web サイトの新しい API リファレンス ページを website/src/routes/api/ に作成します。新しいスキーマ、アクション、メソッド、または型のドキュメントを追加するときに使用します。ソース コードの読み取り、properties.ts ファイルとindex.mdx ファイルの作成、menu.md の更新、および関連 API の相互参照について説明します。 ソース: open-circle/valibot。