提交 075db1c3 编写于 作者: 雪洛's avatar 雪洛

fix: 移除无用的ts-expect-error

上级 b5aa8b7d
import { GetBatteryInfo, GetBatteryInfoOptions, GetBatteryInfoSuccess } from '../interface.uts'
export const getBatteryInfo : GetBatteryInfo = function (options : GetBatteryInfoOptions) {
// @ts-expect-error
if (navigator.getBattery) {
// @ts-expect-error
navigator.getBattery().then(battery => {
const res = {
errCode: 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册