/
githubmirror
/
taro
Обзор
Документация
Войти
/
githubmirror
/
taro
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/taro-runtime/src/current.ts
26 строк
476 B
Zakary
fix(lint): import-sort with name update
07 июн 2022, 10:20
07 июн 2022, 10:20
6fb6004
Код
Авторство
О чём код?
import { AppInstance, PageInstance } from './dsl/instance' export interface Router { params: Record<string, unknown> path: string $taroPath: string onReady: string onHide: string onShow: string exitState?: any } interface Current { app: AppInstance | null router: Router | null page: PageInstance | null preloadData?: any } export const Current: Current = { app: null, router: null, page: null } export const getCurrentInstance = () => Current