first commit
This commit is contained in:
41
uni-pages.d.ts
vendored
Normal file
41
uni-pages.d.ts
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
/* eslint-disable */
|
||||
/* prettier-ignore */
|
||||
// @ts-nocheck
|
||||
// Generated by vite-plugin-uni-pages
|
||||
|
||||
type _LocationUrl =
|
||||
"/pages/index" |
|
||||
"/pages/login" |
|
||||
"/pages/mine" |
|
||||
"/pages/report" |
|
||||
"/pages/inquire/example" |
|
||||
"/pages/inquire/index" |
|
||||
"/pages/legal/authorization" |
|
||||
"/pages/legal/privacy-policy" |
|
||||
"/pages/legal/user-agreement" |
|
||||
"/pages/report/detail" |
|
||||
"/pages/toolbox/category" |
|
||||
"/pages/toolbox/index" |
|
||||
"/pages/toolbox/query";
|
||||
|
||||
interface NavigateToOptions {
|
||||
url: _LocationUrl;
|
||||
}
|
||||
interface RedirectToOptions extends NavigateToOptions {}
|
||||
|
||||
interface SwitchTabOptions {
|
||||
url: "/pages/index" | "/pages/report" | "/pages/mine"
|
||||
}
|
||||
|
||||
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
|
||||
|
||||
declare interface Uni {
|
||||
navigateTo(options: UniNamespace.NavigateToOptions & NavigateToOptions): void;
|
||||
redirectTo(options: UniNamespace.RedirectToOptions & RedirectToOptions): void;
|
||||
switchTab(options: UniNamespace.SwitchTabOptions & SwitchTabOptions): void;
|
||||
reLaunch(options: UniNamespace.ReLaunchOptions & ReLaunchOptions): void;
|
||||
}
|
||||
|
||||
declare module "virtual:uni-pages" {
|
||||
export type LocationUrl = _LocationUrl;
|
||||
}
|
||||
Reference in New Issue
Block a user