Commit 9de2e232 authored by nanahira's avatar nanahira

format

parent 67f7abde
import { Injectable } from '@nestjs/common';
import { AbstractHttpAdapter, HttpAdapterHost, ModuleRef } from '@nestjs/core';
import { AbstractWsAdapter } from '@nestjs/websockets';
@Injectable()
export class KoishiHttpDiscoveryService {
......
......@@ -15,7 +15,6 @@ import {
CommandPutConfig,
DoRegisterConfig,
EventName,
KoishiCommandInterceptor,
KoishiCommandInterceptorRegistration,
KoishiModulePlugin,
} from '../utility/koishi.interfaces';
......
......@@ -5,8 +5,7 @@ import {
WebSocketServer,
} from '@nestjs/websockets';
import { KoishiService } from '../koishi.service';
import type WebSocket from 'ws';
import type { Server } from 'ws';
import type WebSocket, { Server } from 'ws';
import { IncomingMessage } from 'http';
@WebSocketGateway()
......
import { Injectable, NestMiddleware, OnModuleInit } from '@nestjs/common';
import { Injectable, NestMiddleware } from '@nestjs/common';
import { NextFunction, Request, Response } from 'express';
import { KoishiService } from '../koishi.service';
import { IncomingMessage, ServerResponse } from 'http';
......
......@@ -2,12 +2,10 @@
import {
CommandDefinitionFun,
DoRegisterConfig,
KoishiCommandInterceptor,
KoishiCommandInterceptorRegistration,
OnContextFunction,
} from './koishi.interfaces';
import { Context } from 'koishi';
import { Type } from '@nestjs/common';
export const KOISHI_MODULE_OPTIONS = 'KOISHI_MODULE_OPTIONS';
export const KOISHI_CONTEXT = 'KOISHI_CONTEXT';
......
import { CustomDecorator, Inject, Type } from '@nestjs/common';
import { CustomDecorator, Inject } from '@nestjs/common';
import {
KOISHI_CONTEXT,
KoishiCommandDefinition,
......@@ -10,22 +10,18 @@ import {
KoishiServiceWireKeys,
KoishiServiceWireProperty,
MetadataArrayMap,
MetadataMap,
} from './koishi.constants';
import {
CommandDefinitionFun,
CommandPutConfig,
CommandPutConfigMap,
DoRegisterConfig,
EventName,
GenerateMappingStruct,
KoishiCommandInterceptor,
KoishiCommandInterceptorDeclaration,
KoishiCommandInterceptorRegistration,
MetadataArrayValue,
MetadataArrayValueMap,
MetadataGenericMap,
MetadataKey,
MetadataMapValue,
OnContextFunction,
Selection,
} from './koishi.interfaces';
......@@ -283,6 +279,6 @@ export function ProvideContextService(
// Command interceptor
export const CommandInterceptors = (
...interceptors: KoishiCommandInterceptorDeclaration[]
...interceptors: KoishiCommandInterceptorRegistration[]
): MethodDecorator & ClassDecorator =>
ConcatMetadata(KoishiCommandInterceptorDef, interceptors);
import { ModuleMetadata, Provider, Type } from '@nestjs/common';
import { Channel, User } from 'koishi';
import {
App,
Argv,
Channel,
Command,
Context,
EventMap,
......@@ -10,6 +10,7 @@ import {
MaybeArray,
Plugin,
Session,
User,
} from 'koishi';
import { MetadataArrayMap, MetadataMap } from './koishi.constants';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment