Skip to content

Commit 193b4b8

Browse files
authoredMar 12, 2024
chore(deps): pin typescript to 5.3 (#5984)
* chore: pin typescript to 5.3 * fix(types): add ts-expect-error to tests
1 parent 0a76390 commit 193b4b8

File tree

3 files changed

+161
-18
lines changed

3 files changed

+161
-18
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
"sanity": "workspace:*",
150150
"semver": "^7.3.5",
151151
"turbo": "^1.12.4",
152-
"typescript": "^5.4.2",
152+
"typescript": "5.3.3",
153153
"yargs": "^17.3.0"
154154
},
155155
"optionalDependencies": {

‎packages/@sanity/types/src/schema/test/alias.test.ts

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ describe('alias type test', () => {
9595
})
9696

9797
it('should support alias with preview', () => {
98+
//@ts-expect-error error is not in select keys
9899
defineType({
99100
type: 'custom-object',
100101
name: 'redefined',
@@ -105,6 +106,7 @@ describe('alias type test', () => {
105106
},
106107
})
107108

109+
//@ts-expect-error error is not in select keys
108110
defineField({
109111
type: 'custom-object',
110112
name: 'redefined',
@@ -115,6 +117,7 @@ describe('alias type test', () => {
115117
},
116118
})
117119

120+
//@ts-expect-error error is not in select keys
118121
defineArrayMember({
119122
type: 'custom-object',
120123
name: 'redefined',

‎pnpm-lock.yaml

+157-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.