Skip to content

Commit

Permalink
chore: fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Dec 18, 2024
1 parent a4b1ef5 commit bd2396c
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 86 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"type-check": "turbo type-check"
},
"devDependencies": {
"@types/react": "^19.0.2",
"@next/bundle-analyzer": "canary",
"@next/env": "canary",
"@sanity/prettier-config": "1.0.3",
Expand All @@ -38,6 +39,7 @@
"overrides": {
"@next/bundle-analyzer": "$@next/bundle-analyzer",
"@next/env": "$@next/env",
"@types/react": "$@types/react",
"eslint-config-next": "$eslint-config-next",
"next": "$next"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/next-sanity/src/image/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface ImageProps extends Omit<NextImageProps, 'loader' | 'src'> {
/**
* @alpha
*/
export function Image(props: ImageProps): JSX.Element {
export function Image(props: ImageProps): React.JSX.Element {
const {loader, src, ...rest} = props
if (loader) {
throw new TypeError(
Expand Down
2 changes: 1 addition & 1 deletion packages/next-sanity/src/studio/NextStudioNoScript.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @internal */
export const NextStudioNoScript = (): JSX.Element => (
export const NextStudioNoScript = (): React.JSX.Element => (
<noscript>
<div
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function StyledComponentsRegistry({
}: {
children: React.ReactNode
isMounted: boolean
}): JSX.Element {
}): React.JSX.Element {
// Only create stylesheet once with lazy initial state
// x-ref: https://reactjs.org/docs/hooks-reference.html#lazy-initial-state
const [styledComponentsStyleSheet] = useState(() => new ServerStyleSheet())
Expand Down
Loading

0 comments on commit bd2396c

Please sign in to comment.