Skip to content

Commit

Permalink
fix(types): 更改部分 type 说明
Browse files Browse the repository at this point in the history
  • Loading branch information
白唯 committed Sep 17, 2020
1 parent badae42 commit 89b0a19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions @types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export declare interface StoreInstance extends ReturnType<typeof createStore> {
// vuex模块的类型
type ModuleType = { app: AppStateType }

// 所有的SateType
// 所有的StateType
export type StateType = ModuleType & RootStateType & StoreInstance

// request interceptors
/** http请求响应格式 */
export declare interface ApiResponse {
errCode: number
errMsg?: string
Expand Down
2 changes: 1 addition & 1 deletion src/api/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface UserApi {
}

/**
* @example Axios.get(`https://api.abckey.com/market/${this.c_switchCashName}/${this.cash.toLowerCase()}&t=${new Date().getTime()}`)
* @example Axios.get(`https://xxx.com}`)
* @todo Get the exchange rate of the current currency
*/
class UserService {
Expand Down

0 comments on commit 89b0a19

Please sign in to comment.