0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore(console): replace as with satisfies (#3067)

This commit is contained in:
Xiao Yijun 2023-02-07 21:07:05 +08:00 committed by GitHub
parent d3e786ec80
commit 785ee506ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ import { useTheme } from '@/hooks/use-theme';
import * as detailsStyles from '@/scss/details.module.scss';
import * as styles from './index.module.scss';
import type { ApiResourceDetailsOutletContext } from './types';
import { ApiResourceDetailsOutletContext } from './types';
const ApiResourceDetails = () => {
const { pathname } = useLocation();
@ -132,7 +132,6 @@ const ApiResourceDetails = () => {
</TabNav>
<Outlet
context={
// eslint-disable-next-line no-restricted-syntax
{
resource: data,
isDeleting,
@ -140,7 +139,7 @@ const ApiResourceDetails = () => {
onResourceUpdated: (resource: Resource) => {
void mutate(resource);
},
} as ApiResourceDetailsOutletContext
} satisfies ApiResourceDetailsOutletContext
}
/>
</>