Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit de2bc69

Browse files
committed
chore(.eslintrc): add rule '@typescript-eslint/no-object-literal-type-assertion': 'off'
1 parent e66c8bb commit de2bc69

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module.exports = {
2828
rules: {
2929
'dot-notation': 'off',
3030
'no-console': 'off',
31+
'@typescript-eslint/no-object-literal-type-assertion': 'off',
3132
'@typescript-eslint/interface-name-prefix': 'off',
3233
'@typescript-eslint/no-unused-vars': 'off',
3334
'@typescript-eslint/no-non-null-assertion': 'off',

src/store/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Vue from 'vue'
2+
import { AxiosRequestConfig } from 'axios'
23
import { ApiPayloadInterface } from '@/interface/ApiPayloadInterface'
34
import { cancelToken } from '@/utilities/'
45

@@ -81,7 +82,7 @@ export const actions = {
8182
{
8283
cancelToken: cancelToken.getToken(payload),
8384
params: payload
84-
}
85+
} as AxiosRequestConfig // https://github.com/axios/axios/blob/master/index.d.ts
8586
)
8687
console.log('apiResult:', apiResult)
8788

0 commit comments

Comments
 (0)