taro-hooks
Version:
为 Taro 而设计的 Hooks Library
9 lines (8 loc) • 315 B
TypeScript
import type { PromiseAction, PromiseWithoutOptionAction } from '../type';
export type Get = PromiseWithoutOptionAction<Taro.getWeRunData.SuccessCallbackResult>;
export type Share = PromiseAction<Taro.shareToWeRun.record[]>;
declare function useWeRun(): {
get: Get;
share: Share;
};
export default useWeRun;