2021-12-24 16:09:30 +00:00
|
|
|
import type { App, DefineComponent, Ref } from "vue";
|
2021-12-12 14:46:40 +00:00
|
|
|
|
2021-12-24 16:09:30 +00:00
|
|
|
export type StringObject = Record<string, unknown>;
|
2021-09-26 22:09:33 +00:00
|
|
|
|
2021-12-24 16:09:30 +00:00
|
|
|
export type UnknownObject = Record<string | number, unknown>;
|
2021-09-26 22:09:33 +00:00
|
|
|
|
2021-12-24 16:09:30 +00:00
|
|
|
export type UnknownFunction = (...arg: unknown[]) => unknown;
|
2021-09-26 22:09:33 +00:00
|
|
|
|
|
|
|
export type IDefineComponent<Props = UnknownObject> = DefineComponent<Props> & {
|
2021-12-24 16:09:30 +00:00
|
|
|
install: (app: App, options?: InstallOptions) => void;
|
|
|
|
};
|
2021-09-26 22:09:33 +00:00
|
|
|
|
2021-12-25 18:18:25 +00:00
|
|
|
export interface InstallOptions extends StringObject {}
|
2021-10-11 08:17:55 +00:00
|
|
|
|
2021-12-24 16:09:30 +00:00
|
|
|
export type Nullable<T> = T | null;
|
2021-10-11 08:17:55 +00:00
|
|
|
|
2021-12-24 16:09:30 +00:00
|
|
|
export type MaybeRef<T> = Ref<T> | T;
|
2021-10-11 08:17:55 +00:00
|
|
|
|
2021-12-24 16:09:30 +00:00
|
|
|
export type Recordable = Record<string, any>;
|