@sanity/types 5.17.0-next.21 → 5.17.0-next.22
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/lib/index.d.ts +15 -0
- package/package.json +5 -5
package/lib/index.d.ts
CHANGED
|
@@ -1979,6 +1979,21 @@ interface Schema {
|
|
|
1979
1979
|
interface SortOrderingItem {
|
|
1980
1980
|
field: string;
|
|
1981
1981
|
direction: 'asc' | 'desc';
|
|
1982
|
+
/**
|
|
1983
|
+
* Controls whether null/undefined values appear first or last in the sort order.
|
|
1984
|
+
*
|
|
1985
|
+
* Defaults match PostgreSQL behavior:
|
|
1986
|
+
* - `'desc'` direction → nulls first
|
|
1987
|
+
* - `'asc'` direction → nulls last
|
|
1988
|
+
*
|
|
1989
|
+
* Only specify this to override the default (e.g. `nulls: 'last'` with `direction: 'desc'`).
|
|
1990
|
+
*
|
|
1991
|
+
* ### ❗This is an experimental feature.
|
|
1992
|
+
* Overriding the default may have performance implications for document types
|
|
1993
|
+
* with hundreds of documents.
|
|
1994
|
+
* @alpha
|
|
1995
|
+
*/
|
|
1996
|
+
nulls?: 'first' | 'last';
|
|
1982
1997
|
}
|
|
1983
1998
|
/** @public */
|
|
1984
1999
|
type I18nTextRecord<K extends string> = { [P in K]?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/types",
|
|
3
|
-
"version": "5.17.0-next.
|
|
3
|
+
"version": "5.17.0-next.22+d5f6875ffd",
|
|
4
4
|
"description": "Type definitions for common Sanity data structures",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"react": "^19.2.4",
|
|
48
48
|
"rimraf": "^6.1.3",
|
|
49
49
|
"vitest": "^4.0.18",
|
|
50
|
-
"@repo/eslint-config": "5.17.0-next.
|
|
51
|
-
"@repo/test-config": "5.17.0-next.
|
|
52
|
-
"@repo/tsconfig": "5.17.0-next.
|
|
53
|
-
"@repo/package.config": "5.17.0-next.
|
|
50
|
+
"@repo/eslint-config": "5.17.0-next.22+d5f6875ffd",
|
|
51
|
+
"@repo/test-config": "5.17.0-next.22+d5f6875ffd",
|
|
52
|
+
"@repo/tsconfig": "5.17.0-next.22+d5f6875ffd",
|
|
53
|
+
"@repo/package.config": "5.17.0-next.22+d5f6875ffd"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@types/react": "^19.2"
|