UNPKG

@neosjs/create-app

Version:

帮助开发者快速创建Vue3应用并自动配置项目

36 lines (34 loc) 1.09 kB
import type { PropType as VuePropType } from 'vue' declare global { interface Window { __APP_VERSION__: string __APP_INFO__: any } const __APP_INFO__: { pkg: { name: string version: string homepage: string } buildTime: string } declare const navigator: Navigator declare type TimeoutHandle = ReturnType<typeof setTimeout> declare type IntervalHandle = ReturnType<typeof setInterval> declare type Recordable<T = any> = Record<string, T> declare type PropType<T> = VuePropType<T> declare type Nullable<T> = T | null declare type RefType<T> = T | null declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> { $el: T } declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T> declare interface Fn<T = any, R = T> { (...arg: T[]): R } declare interface PromiseFn<T = any, R = T> { (...arg: T[]): Promise<R> } declare function parseInt(s: string | number, radix?: number): number }