-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
typings.d.ts
38 lines (30 loc) · 831 Bytes
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { ENV_TYPE } from '@tarojs/taro';
/// <reference types="@tarojs/taro" />
/// <reference types="@taro-hooks/plugin-react" />
declare module '*.css';
declare module '*.less';
declare module '*.scss';
declare module '*.png';
declare module '*.json';
declare module '*.vue';
// mock typings
declare module 'lodash.throttle';
declare module 'qrcode';
declare module 'mockjs' {
export * from '@types/mockjs';
}
declare var BUILD_MODE: string | undefined;
declare var __TARO_HOOKS_VUE__: boolean;
declare var __TARO_HOOKS_REACT__: boolean;
declare var TARO_ENV: ENV_TYPE;
declare type BatteryManager = {
readonly charging: boolean;
readonly level: number;
};
interface Navigator {
getBattery: () => Promise<BatteryManager>;
}
declare var wx: any;
declare type TRecord<T = unknown> = {
[_: string | number]: T;
};