Skip to content

Commit

Permalink
chore: fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 12, 2021
1 parent 5ee455a commit 43e00b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 6 additions & 0 deletions packages/plugin-chat/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ declare module 'koishi-core' {
interface EventMap {
'chat/receive'(message: Message, session: Session): void
}

namespace Bot {
interface Platforms {
'web': SandboxBot
}
}
}

export interface Config extends ReceiverConfig {
Expand Down
7 changes: 0 additions & 7 deletions packages/plugin-webui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Context, Channel, User } from 'koishi-core'
import { template, Time } from 'koishi-utils'
import { Meta } from './data'
import { Synchronizer } from './stats'
import { SandboxBot } from './adapter'
import { WebServer, Config } from './server'

import './mongo'
Expand All @@ -29,12 +28,6 @@ declare module 'koishi-core' {
_sendType?: 'command' | 'dialogue'
}

namespace Bot {
interface Platforms {
'web': SandboxBot
}
}

interface Bot {
messageSent: number[]
messageReceived: number[]
Expand Down

0 comments on commit 43e00b9

Please sign in to comment.