import { expectType } from 'tsd' ; wx . getFriendCloudStorage ( { keyList : [ ] , success ( res ) { expectType < WechatMinigame . GetFriendCloudStorageSuccessCallbackResult > ( res ) ; } , } ) ; wx . requestMidasPayment ( { currencyType : 'CNY' , mode : 'game' , offerId : '' , success ( res ) { expectType < WechatMinigame . MidasPaymentError > ( res ) ; } , } ) ; wx . stopAccelerometer ( { fail ( res ) { expectType < WechatMinigame . GeneralCallbackResult > ( res ) ; } , } ) ; wx . stopCompass ( { complete ( res ) { expectType < WechatMinigame . GeneralCallbackResult > ( res ) ; } , } ) ; wx . getFriendCloudStorage ( { keyList : [ ] , } ) . then ( res => { expectType < WechatMinigame . GetFriendCloudStorageSuccessCallbackResult > ( res ) ; } ) ; wx . requestMidasPayment ( { currencyType : 'CNY' , mode : 'game' , offerId : '' , } ) . then ( res => { expectType < WechatMinigame . MidasPaymentError > ( res ) ; } ) ; wx . stopAccelerometer ( ) . then ( res => { expectType < WechatMinigame . GeneralCallbackResult > ( res ) ; } ) ; wx . stopCompass ( ) . then ( res => { expectType < WechatMinigame . GeneralCallbackResult > ( res ) ; } ) ; async ( ) => { expectType < WechatMinigame . GetFriendCloudStorageSuccessCallbackResult > ( await wx . getFriendCloudStorage ( { keyList : [ ] , } ) ) ; expectType < WechatMinigame . MidasPaymentError > ( await wx . requestMidasPayment ( { currencyType : 'CNY' , mode : 'game' , offerId : '' , } ) ) ; expectType < WechatMinigame . GeneralCallbackResult > ( await wx . stopAccelerometer ( ) ) ; expectType < WechatMinigame . GeneralCallbackResult > ( await wx . stopCompass ( ) ) ; } ;