@tarojs/taro-h5
Version:
Taro h5 framework
34 lines (29 loc) • 587 B
TypeScript
import Taro from '@tarojs/api'
namespace Router {
export interface Location {
path: string
search: string
hash: string
state: {
key: string
}
params: {
[key: string]: string
}
}
export interface RouterParams {
path: string
scene: number
params: {
[key: string]: string
}
shareTicket: string
referrerInfo: Record<string, any>
}
}
interface TaroH5 {
_$router: Router.Location
$router: Router.RouterParams
}
const TaroH5: TaroH5 & typeof Taro = {} as any
export = TaroH5