Skip to content

Commit

Permalink
refactor: 为got的import添加错误忽略
Browse files Browse the repository at this point in the history
  • Loading branch information
Haochen Duan committed Aug 26, 2024
1 parent b6b5b00 commit 75ad7d7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/qqtools/src/services/48/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import got, { type Response as GotResponse } from 'got';
import { createHeaders } from '../../utils/snh48';
import * as biaoqingbao from './biaoqingbao.json' assert { type: 'json' };
Expand Down
1 change: 1 addition & 0 deletions packages/qqtools/src/services/48/login/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import got, { type Response as GotResponse } from 'got';
import { createHeaders } from '../../../utils/snh48';
import type { SMSResult, LoginUserInfo, IMUserInfo, UserInfoReloadOrSwitch } from './interface';
Expand Down
1 change: 1 addition & 0 deletions packages/qqtools/src/services/bilibili/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import got, { type Response as GotResponse } from 'got';
import type { _FeedSpaceObject } from '../../../../main/src/logProtocol/logTemplate/bilibili.mjs';
import { _bilibili } from '../../utils/logProtocol/logActions';
Expand Down
1 change: 1 addition & 0 deletions packages/qqtools/src/services/douyin/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import got, { type Response as GotResponse } from 'got';
import type { _AwemePostObject } from '../../../../main/src/logProtocol/logTemplate/douyin.mjs';
import { awemePostQueryV2 } from '../../utils/toutiao/signUtils';
Expand Down
1 change: 1 addition & 0 deletions packages/qqtools/src/services/weibo/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import got, { type Response as GotResponse } from 'got';
import type { WeiboInfo, WeiboContainerList } from './interface';

Expand Down
1 change: 1 addition & 0 deletions packages/qqtools/src/services/xiaohongshu/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import got, { type Response as GotResponse } from 'got';
import type { _UserPostedObject, _FeedObject } from '@qqtools3/main/src/logProtocol/logTemplate/xiaohongshu.mjs';
import { _xiaohongshuLogProtocol } from '../../utils/logProtocol/logActions';
Expand Down

0 comments on commit 75ad7d7

Please sign in to comment.