Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/petite-lions-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

docs: remove `@example` blocks to allow docs to deploy
13 changes: 0 additions & 13 deletions packages/kit/src/exports/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1971,19 +1971,6 @@ type InvalidField<T> =
* If an issue is a `string`, it applies to the form as a whole (and will show up in `fields.allIssues()`)
* Access properties to create field-specific issues: `invalid.fieldName('message')`.
* The type structure mirrors the input data structure for type-safe field access.
*
* @example
* ```ts
* invalid('Username or password is invalid');
* ```
*
* @example
* ```ts
* invalid(
* invalid.username('Username is taken'),
* invalid.items[0].qty('Insufficient stock')
* );
* ```
*/
export type Invalid<Input = any> = ((...issues: Array<string | StandardSchemaV1.Issue>) => never) &
InvalidField<Input>;
Expand Down
13 changes: 0 additions & 13 deletions packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1947,19 +1947,6 @@ declare module '@sveltejs/kit' {
* If an issue is a `string`, it applies to the form as a whole (and will show up in `fields.allIssues()`)
* Access properties to create field-specific issues: `invalid.fieldName('message')`.
* The type structure mirrors the input data structure for type-safe field access.
*
* @example
* ```ts
* invalid('Username or password is invalid');
* ```
*
* @example
* ```ts
* invalid(
* invalid.username('Username is taken'),
* invalid.items[0].qty('Insufficient stock')
* );
* ```
*/
export type Invalid<Input = any> = ((...issues: Array<string | StandardSchemaV1.Issue>) => never) &
InvalidField<Input>;
Expand Down
Loading