Skip to content

Commit

Permalink
chore(deps): pin typescript to 5.3 (#5984)
Browse files Browse the repository at this point in the history
* chore: pin typescript to 5.3

* fix(types): add ts-expect-error to tests
  • Loading branch information
bjoerge authored Mar 12, 2024
1 parent 0a76390 commit 193b4b8
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"sanity": "workspace:*",
"semver": "^7.3.5",
"turbo": "^1.12.4",
"typescript": "^5.4.2",
"typescript": "5.3.3",
"yargs": "^17.3.0"
},
"optionalDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/@sanity/types/src/schema/test/alias.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ describe('alias type test', () => {
})

it('should support alias with preview', () => {
//@ts-expect-error error is not in select keys
defineType({
type: 'custom-object',
name: 'redefined',
Expand All @@ -105,6 +106,7 @@ describe('alias type test', () => {
},
})

//@ts-expect-error error is not in select keys
defineField({
type: 'custom-object',
name: 'redefined',
Expand All @@ -115,6 +117,7 @@ describe('alias type test', () => {
},
})

//@ts-expect-error error is not in select keys
defineArrayMember({
type: 'custom-object',
name: 'redefined',
Expand Down
174 changes: 157 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 193b4b8

Please sign in to comment.