提交 21e1ab33 编写于 作者: 杜庆泉's avatar 杜庆泉

增加ts-doc注释

上级 4fa3cc70
...@@ -62,5 +62,38 @@ export type GetBatteryInfo = (options : GetBatteryInfoOptions) => void ...@@ -62,5 +62,38 @@ export type GetBatteryInfo = (options : GetBatteryInfoOptions) => void
interface Uni { interface Uni {
/**
* 获取电池电量信息
* @description 获取电池电量信息
* @param {GetBatteryInfoOptions} options
* @example
* ```typescript
* uni.getBatteryInfo({
* success(res) {
* console.log(res);
* }
* })
* ```
* @remark
* - 该接口需要同步调用
* @uniPlatform {
* "app": {
* "android": {
* "osVer": "4.4.4",
* "uniVer": "3.6.11",
* "unixVer": "3.9.0"
* },
* "ios": {
* "osVer": "8.0",
* "uniVer": "3.6.11",
* "unixVer": "3.9.0"
* }
* }
* }
* @uniVueVersion 2,3 //支持的vue版本
*
*/
getBatteryInfo : GetBatteryInfo getBatteryInfo : GetBatteryInfo
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册