Skip to content

Commit

Permalink
upgrade ts
Browse files Browse the repository at this point in the history
  • Loading branch information
viet nguyen committed Sep 22, 2023
1 parent b6be972 commit 1176da5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -142,4 +142,4 @@
"engines": {
"node": "18"
}
}
}
2 changes: 1 addition & 1 deletion src/js/auth/forOwnerOnly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<P> = (props: P) => JSX.Element | null
type Fn<P> = (props: P) => React.ReactNode | JSX.Element | null

export type ForOwnerOnlyProps = Pick<UserPublicProfile, 'userUuid'>

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8574,10 +8574,10 @@ typed-array-length@^1.0.4:
for-each "^0.3.3"
is-typed-array "^1.1.9"

typescript@4.9.5:
version "4.9.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
typescript@^5.2.2:
version "5.2.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78"
integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==

typesense@^1.2.1:
version "1.7.1"
Expand Down

0 comments on commit 1176da5

Please sign in to comment.