feat: 所有的类型检查
This commit is contained in:
1 parent
19888d52dc
commit
df824d77ae
50 files changed
+477
-94
No files matched your search
@@ -11,7 +11,6 @@ import {
|
||||
TipGroupElement,
|
||||
TipGroupElementType,
|
||||
} from 'napcat-core';
|
||||
import { NapCatOneBot11Adapter } from '@/napcat-onebot/index';
|
||||
import { OB11GroupBanEvent } from '@/napcat-onebot/event/notice/OB11GroupBanEvent';
|
||||
import fastXmlParser from 'fast-xml-parser';
|
||||
import { OB11GroupMsgEmojiLikeEvent } from '@/napcat-onebot/event/notice/OB11MsgEmojiLikeEvent';
|
||||
@@ -26,6 +25,7 @@ import { FileNapCatOneBotUUID } from 'napcat-common/src/file-uuid';
|
||||
import { OB11GroupIncreaseEvent } from '../event/notice/OB11GroupIncreaseEvent';
|
||||
import { NapProtoMsg } from 'napcat-protobuf';
|
||||
import { GroupReactNotify, PushMsg } from 'napcat-core/packet/transformer/proto';
|
||||
import { NapCatOneBot11Adapter } from '..';
|
||||
|
||||
export class OneBotGroupApi {
|
||||
obContext: NapCatOneBot11Adapter;
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
NTMsgAtType,
|
||||
} from 'napcat-core';
|
||||
import { OB11ConfigLoader } from '@/napcat-onebot/config';
|
||||
import { pendingTokenToSend } from 'napcat-webui-backend/src/index';
|
||||
import { pendingTokenToSend } from 'napcat-webui-backend/index';
|
||||
import {
|
||||
OB11HttpClientAdapter,
|
||||
OB11WebSocketClientAdapter,
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "index.ts",
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit --skipLibCheck -p tsconfig.json"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./index.ts"
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
"resolveJsonModule": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/napcat-onebot/*": [
|
||||
"*"
|
||||
"@/*": [
|
||||
"../*"
|
||||
]
|
||||
},
|
||||
"skipLibCheck": true,
|
||||
|
||||
Reference in new issue
Block a user