import { AxiosInstance } from 'axios' ; import { AccountWrap } from '../@types' ; export default function ( client ) { return { async getAccountRaw ( ) { return await client . get ( 'me' ) ; } , async getAccount ( ) { const { account } = await this . getAccountRaw ( ) ; return account ; } , async getMe ( ) { return await this . getAccount ( ) ; } , } ; }