xcx-operateui/types/global.d.ts
2025-08-23 10:39:53 +08:00

24 lines
532 B
TypeScript

import type { ComponentPublicInstance, FunctionalComponent } from 'vue'
declare global {
type Recordable<T = any> = Record<string, T>
interface Array {
post?: <T>(data?: Recordable<any>) => Promise<{
code: string
msg: string
data: T
}>
get?: <T>(data?: Recordable<any>) => Promise<{
code: string
msg: string
data: T
}>
}
}
declare module 'vue' {
export type JSXComponent<Props = any> =
| { new (): ComponentPublicInstance<Props> }
| FunctionalComponent<Props>
}