@sanity/schema 5.0.0-next.0-9b570ece82-202507150640 → 5.0.0-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/lib/{index.mjs → _chunks-es/Rule.js} +368 -62
- package/lib/_chunks-es/Rule.js.map +1 -0
- package/lib/_internal.d.ts +266 -20
- package/lib/_internal.js +1489 -737
- package/lib/_internal.js.map +1 -1
- package/lib/index.d.ts +10 -0
- package/lib/index.js +7 -1411
- package/lib/index.js.map +1 -1
- package/package.json +18 -19
- package/lib/_chunks-cjs/resolve.js +0 -111
- package/lib/_chunks-cjs/resolve.js.map +0 -1
- package/lib/_chunks-es/resolve.mjs +0 -109
- package/lib/_chunks-es/resolve.mjs.map +0 -1
- package/lib/_internal.d.mts +0 -185
- package/lib/_internal.mjs +0 -2131
- package/lib/_internal.mjs.map +0 -1
- package/lib/index.d.mts +0 -47
- package/lib/index.mjs.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {RuleClass} from '@sanity/types'
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @deprecated Use `import {Schema} from "@sanity/schema"` instead
|
|
3
5
|
*/
|
|
@@ -7,6 +9,14 @@ declare class DeprecatedDefaultSchema extends Schema_2 {
|
|
|
7
9
|
}
|
|
8
10
|
export default DeprecatedDefaultSchema
|
|
9
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Core Rule implementation without validation logic.
|
|
14
|
+
* This is the base Rule class that can be extended with validation logic.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const Rule: RuleClass
|
|
19
|
+
|
|
10
20
|
export declare const Schema: typeof Schema_2
|
|
11
21
|
|
|
12
22
|
/**
|