Commit 6038ef45 authored by nanahira's avatar nanahira

optimize

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