From 785ee506ade04ae10343e637967cdb2c3caf8303 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Tue, 7 Feb 2023 21:07:05 +0800 Subject: [PATCH] chore(console): replace `as` with `satisfies` (#3067) --- packages/console/src/pages/ApiResourceDetails/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/console/src/pages/ApiResourceDetails/index.tsx b/packages/console/src/pages/ApiResourceDetails/index.tsx index aa489f376..e125296ae 100644 --- a/packages/console/src/pages/ApiResourceDetails/index.tsx +++ b/packages/console/src/pages/ApiResourceDetails/index.tsx @@ -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 = () => { { onResourceUpdated: (resource: Resource) => { void mutate(resource); }, - } as ApiResourceDetailsOutletContext + } satisfies ApiResourceDetailsOutletContext } />