diff --git a/next-ui/src/api/komga-client.ts b/next-ui/src/api/komga-client.ts index 0c9ff8e7e..d1dea65ff 100644 --- a/next-ui/src/api/komga-client.ts +++ b/next-ui/src/api/komga-client.ts @@ -35,11 +35,11 @@ const client = createClient({ }) client.use(coladaMiddleware) -interface SpringError { +type SpringError = { message?: string } -export interface ErrorCause { +export type ErrorCause = { body?: unknown status?: number message?: string diff --git a/next-ui/src/components/dialog/Confirm.vue b/next-ui/src/components/dialog/Confirm.vue index fc8b6fbe4..4668549f9 100644 --- a/next-ui/src/components/dialog/Confirm.vue +++ b/next-ui/src/components/dialog/Confirm.vue @@ -96,7 +96,7 @@ async function submitForm(isActive: Ref) { } } -export interface DialogConfirmProps { +export type DialogConfirmProps = { title?: string subtitle?: string okText?: string diff --git a/next-ui/src/components/dialog/ConfirmEdit.vue b/next-ui/src/components/dialog/ConfirmEdit.vue index 80d991ee5..4083a4f2f 100644 --- a/next-ui/src/components/dialog/ConfirmEdit.vue +++ b/next-ui/src/components/dialog/ConfirmEdit.vue @@ -79,7 +79,7 @@ async function submitForm(callback: () => void) { if (valid) callback() } -export interface DialogConfirmEditProps { +export type DialogConfirmEditProps = { /** * Dialog title * @type string diff --git a/next-ui/src/components/user/form/CreateEdit.vue b/next-ui/src/components/user/form/CreateEdit.vue index b6031dc9b..4d8daba22 100644 --- a/next-ui/src/components/user/form/CreateEdit.vue +++ b/next-ui/src/components/user/form/CreateEdit.vue @@ -265,7 +265,7 @@ import { commonMessages } from '@/utils/i18n/common-messages' const intl = useIntl() -interface UserExtend { +type UserExtend = { id?: string email: string password?: string diff --git a/next-ui/src/stores/dialogs.ts b/next-ui/src/stores/dialogs.ts index 1b47d27ce..51122d146 100644 --- a/next-ui/src/stores/dialogs.ts +++ b/next-ui/src/stores/dialogs.ts @@ -29,22 +29,22 @@ export const useDialogsStore = defineStore('dialogs', { }), }) -interface DialogActivation { +type DialogActivation = { activator?: Element | string dialogProps: T callback: (hideDialog: () => void, setLoading: (isLoading: boolean) => void) => void } -interface DialogConfirmEditActivation extends DialogActivation { +type DialogConfirmEditActivation = DialogActivation & { slot: ComponentWithProps record?: unknown } -interface DialogConfirmActivation extends DialogActivation { +type DialogConfirmActivation = DialogActivation & { slotWarning: ComponentWithProps } -interface ComponentWithProps { +type ComponentWithProps = { component?: Component props: object } diff --git a/next-ui/src/types/Actuator.ts b/next-ui/src/types/Actuator.ts index ca31a35ce..39cb207d4 100644 --- a/next-ui/src/types/Actuator.ts +++ b/next-ui/src/types/Actuator.ts @@ -1,19 +1,19 @@ -export interface ActuatorInfo { +export type ActuatorInfo = { git: ActuatorGit build: ActuatorBuild } -export interface ActuatorGit { +export type ActuatorGit = { commit: ActuatorGitCommit branch: string } -export interface ActuatorGitCommit { +export type ActuatorGitCommit = { time: Date id: string } -export interface ActuatorBuild { +export type ActuatorBuild = { version: string artifact: string name: string