Skip to content

Commit

Permalink
fix(type): remove useless type declare
Browse files Browse the repository at this point in the history
  • Loading branch information
innocces committed Jun 23, 2023
1 parent 2f07ac2 commit cd324aa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/hooks/src/useBattery/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { getBatteryInfoSync } from '@tarojs/taro';
import { createUseInfoHook } from '../createUseInfoHook';

export type Result = Taro.getBatteryInfoSync.Result;

type s = Awaited<ReturnType<typeof getBatteryInfoSync>>;

const useBattery = createUseInfoHook<'getBatteryInfoSync'>(
getBatteryInfoSync,
{},
Expand Down

0 comments on commit cd324aa

Please sign in to comment.