diff --git a/package.json b/package.json index fd92a6e1a..dfd8e0140 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,7 @@ "resize-observer-polyfill": "^1.5.1", "tailwindcss": "^3.1.8", "ts-standard": "^12.0.2", - "typescript": "4.9.5" + "typescript": "^5.2.2" }, "repository": { "type": "git", @@ -142,4 +142,4 @@ "engines": { "node": "18" } -} \ No newline at end of file +} diff --git a/src/js/auth/forOwnerOnly.ts b/src/js/auth/forOwnerOnly.ts index 51e3eb5f9..98f70cd86 100644 --- a/src/js/auth/forOwnerOnly.ts +++ b/src/js/auth/forOwnerOnly.ts @@ -9,7 +9,7 @@ import usePermissions from '../hooks/auth/usePermissions' * @param {P} props - The props passed to the function. * @returns {JSX.Element | null} - The JSX element returned by the function, or null. */ -type Fn
= (props: P) => JSX.Element | null +type Fn
= (props: P) => React.ReactNode | JSX.Element | null
export type ForOwnerOnlyProps = Pick