Commit 6038ef45 authored by nanahira's avatar nanahira

optimize

parent a254f929
import { Command, Context, Router } from 'koishi'; import { Command, Context } from 'koishi';
import { import {
Inject, Inject,
Injectable, Injectable,
......
...@@ -9,7 +9,6 @@ import { ...@@ -9,7 +9,6 @@ import {
} from '../utility/koishi.constants'; } from '../utility/koishi.constants';
import { KoishiModuleOptions } from '../utility/koishi.interfaces'; import { KoishiModuleOptions } from '../utility/koishi.interfaces';
import { Context } from 'koishi'; import { Context } from 'koishi';
import {} from '../utility/koishi.workarounds';
@Injectable() @Injectable()
export class KoishiInjectionService { export class KoishiInjectionService {
......
import { Inject, Injectable, NestMiddleware } from '@nestjs/common'; import { Injectable, NestMiddleware } from '@nestjs/common';
import { NextFunction } from 'express'; import { NextFunction } from 'express';
import { KoishiService } from '../koishi.service'; import { KoishiService } from '../koishi.service';
import { IncomingMessage, ServerResponse } from 'http'; import { IncomingMessage, ServerResponse } from 'http';
......
...@@ -3,7 +3,6 @@ import { ...@@ -3,7 +3,6 @@ import {
KoishiCommandInterceptorRegistration, KoishiCommandInterceptorRegistration,
ServiceName, ServiceName,
} from './koishi.interfaces'; } from './koishi.interfaces';
import { Context } from 'koishi';
export const KOISHI_MODULE_OPTIONS = 'KOISHI_MODULE_OPTIONS'; export const KOISHI_MODULE_OPTIONS = 'KOISHI_MODULE_OPTIONS';
export const KOISHI_CONTEXT = 'KOISHI_CONTEXT'; export const KOISHI_CONTEXT = 'KOISHI_CONTEXT';
......
...@@ -21,6 +21,11 @@ import { ...@@ -21,6 +21,11 @@ import {
ContextScopeTypes, ContextScopeTypes,
getContextProvideToken, getContextProvideToken,
} from './koishi-context.factory'; } from './koishi-context.factory';
import {
PluginDef as _pluginDef,
PluginRegistrar,
Selection,
} from 'koishi-thirdeye';
// Injections // Injections
export const InjectContext = () => Inject(KOISHI_CONTEXT); export const InjectContext = () => Inject(KOISHI_CONTEXT);
...@@ -94,11 +99,6 @@ export const ConcatMetadata = <K extends keyof MetadataArrayValueMap>( ...@@ -94,11 +99,6 @@ export const ConcatMetadata = <K extends keyof MetadataArrayValueMap>(
// Export all koishi-decorator decorators // Export all koishi-decorator decorators
export * from 'koishi-thirdeye/dist/src/decorators/common'; export * from 'koishi-thirdeye/dist/src/decorators/common';
import {
PluginDef as _pluginDef,
PluginRegistrar,
Selection,
} from 'koishi-thirdeye';
export function PluginDef( export function PluginDef(
name: string, name: string,
......
import { ModuleMetadata, Provider, Type } from '@nestjs/common'; import { ModuleMetadata, Provider, Type } from '@nestjs/common';
import { App, Channel, Command, Context, User, Plugin } from 'koishi'; import { App, Channel, Command, Context, Plugin, User } from 'koishi';
import { MetadataArrayMap, MetadataMap } from './koishi.constants'; import { MetadataArrayMap, MetadataMap } from './koishi.constants';
import { PluginRegistrar, Selection } from 'koishi-thirdeye'; import { PluginRegistrar, Selection } from 'koishi-thirdeye';
......
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