You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
// import type { ComponentPublicInstance, FunctionalComponent } from 'vue'; |
|
declare global { |
|
export type Writable<T> = { |
|
-readonly [P in keyof T]: T[P]; |
|
}; |
|
|
|
namespace JSX { |
|
// tslint:disable no-empty-interface |
|
interface IntrinsicElements { |
|
[elem: string]: any; |
|
} |
|
interface IntrinsicAttributes { |
|
[elem: string]: any; |
|
} |
|
} |
|
} |
|
|
|
// declare module 'vue' { |
|
// export type JSXComponent<Props = any> = |
|
// | { new (): ComponentPublicInstance<Props> } |
|
// | FunctionalComponent<Props>; |
|
// } |
|
|
|
interface ImportMetaEnv extends ViteEnv { |
|
__: unknown; |
|
} |
|
|
|
declare interface ViteEnv { |
|
API_BASE_URL: string; |
|
} |
|
|
|
declare type Nullable<T> = T | null; |
|
declare type NonNullable<T> = T extends null | undefined ? never : T; |
|
declare type Recordable<T = any> = Record<string, T>; |
|
declare type ReadonlyRecordable<T = any> = { |
|
readonly [key: string]: T; |
|
}; |
|
declare type Indexable<T = any> = { |
|
[key: string]: T; |
|
}; |
|
declare type DeepPartial<T> = { |
|
[P in keyof T]?: DeepPartial<T[P]>; |
|
}; |
|
declare type TimeoutHandle = ReturnType<typeof setTimeout>; |
|
declare type IntervalHandle = ReturnType<typeof setInterval>; |
|
|
|
declare interface ChangeEvent extends Event { |
|
target: HTMLInputElement; |
|
}
|
|
|