Skip to content

Commit 4876537

Browse files
fix(typegen): 🤖 ✨ (#1511)
Co-authored-by: squiggler-app[bot] <265501495+squiggler-app[bot]@users.noreply.github.com>
1 parent 740ca00 commit 4876537

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

‎dev/test-studio/sanity.types.ts‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,25 @@ export type Latex = {
796796
body?: string
797797
}
798798

799+
export type Issue1506TeamMember = {
800+
_id: string
801+
_type: 'issue1506TeamMember'
802+
_createdAt: string
803+
_updatedAt: string
804+
_rev: string
805+
orderRank?: string
806+
name?: string
807+
}
808+
809+
export type Issue1506Page = {
810+
_id: string
811+
_type: 'issue1506Page'
812+
_createdAt: string
813+
_updatedAt: string
814+
_rev: string
815+
title?: string
816+
}
817+
799818
export type OrderableProject = {
800819
_id: string
801820
_type: 'orderableProject'
@@ -1672,6 +1691,8 @@ export type AllSanitySchemaTypes =
16721691
| Lesson
16731692
| LatexTest
16741693
| Latex
1694+
| Issue1506TeamMember
1695+
| Issue1506Page
16751696
| OrderableProject
16761697
| OrderableCategory
16771698
| HotspotArrayDemo

‎plugins/@sanity/orderable-document-list/README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export default defineConfig({
8686

8787
// ... all other desk items, e.g. all other document types not already included
8888
// @see https://www.sanity.io/docs/studio/structure-builder-cheat-sheet#k4eb3b1891dc2
89-
...S.documentTypeListItems().filter((item) => !(['category', 'project'].includes(item.getId())))
89+
...S.documentTypeListItems().filter(
90+
(item) => !['category', 'project'].includes(item.getId()),
91+
),
9092
])
9193
},
9294
}),
@@ -194,7 +196,6 @@ Uses [kvandakes](https://github.com/kvandake)'s [TypeScript implementation](http
194196
195197
Put simply it updates the position of an individual – or many – Documents in an ordered list without updating any others. It's fast.
196198
197-
198199
## License
199200
200201
[MIT](LICENSE) © Sanity.io

0 commit comments

Comments
 (0)