42 lines
1.4 KiB
TypeScript
42 lines
1.4 KiB
TypeScript
declare module 'vg-print' {
|
||
import type { DefineComponent } from 'vue';
|
||
export const FullDesigner: DefineComponent<Record<string, unknown>, {}, any>;
|
||
export const hiprint: { register(options: { authKey: string }): void };
|
||
export const createTemplate: (json: unknown) => unknown;
|
||
export const printBrowser: (tpl: unknown, data: unknown) => void;
|
||
const plugin: { install: (app: unknown) => void };
|
||
export default plugin;
|
||
}
|
||
|
||
declare module 'vg-print/style.css' {
|
||
const css: string;
|
||
export default css;
|
||
}
|
||
|
||
declare module 'vue-request-editor' {
|
||
import type { DefineComponent } from 'vue';
|
||
export const RequestEditor: DefineComponent<Record<string, unknown>, {}, any>;
|
||
}
|
||
|
||
/// <reference types="vite/client" />
|
||
/// <reference types="unocss" />
|
||
|
||
declare module '*.vue' {
|
||
import { DefineComponent } from 'vue';
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
||
const component: DefineComponent<{}, {}, any>;
|
||
export default component;
|
||
}
|
||
|
||
interface ImportMetaEnv {
|
||
readonly VITE_API_BASE_URL: string;
|
||
readonly VITE_OMS_URL?: string;
|
||
/** 生产 Admin 基址,默认 https://api.ideship.com/admin */
|
||
readonly VITE_API_ADMIN_URL?: string;
|
||
readonly VITE_OMS_ADMIN_URL?: string;
|
||
/** 生产 API 根,默认 https://api.ideship.com */
|
||
readonly VITE_API_ORIGIN?: string;
|
||
/** 静态资源 origin,默认生产 https://api.ideship.com/admin */
|
||
readonly VITE_API_ASSET_ORIGIN?: string;
|
||
}
|