refactor(shell): allow void in return type

This commit is contained in:
Il Harper 2024-03-08 15:53:36 +08:00
parent b71a61a430
commit b794c95be0
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-invalid-void-type */
import type { QFace, RedMessage } from '@chronocat/red'
import type h from '@satorijs/element'
import type styles from 'ansi-styles'
@ -96,7 +98,7 @@ export interface Methods {
'guild.get': [[GuildGetPayload], Guild]
'guild.list': [[], GuildListResponse]
'guild.approve': [[ApprovePayload], never]
'guild.approve': [[ApprovePayload], void]
'message.create': [
[MessageCreatePayload, ChronocatSatoriServerConfig],
@ -107,7 +109,7 @@ export interface Methods {
// Internal
'chronocat.internal.notimpl': [[], never]
'chronocat.internal.notimpl': [[], void]
'chronocat.internal.message.create.forward': [
[MessageCreatePayload, ChronocatSatoriServerConfig],