blessing-skin-server/resources/assets/src/shims.d.ts
2018-08-06 12:14:20 +08:00

28 lines
489 B
TypeScript

import Vue from 'vue'
declare global {
var blessing: {
base_url: string
debug: boolean
env: string
fallback_locale: string
locale: string
site_name: string
timezone: string
version: string
route: string
}
}
declare module 'vue/types/vue' {
interface Vue {
$t(key: string, parameters?: object): string
$http: {
get(url: string, params?: object)
post(url: string, data?: object): { errno?: number, msg?: string }
}
}
}