Commit c7caae80 authored by nanahira's avatar nanahira

minor

parent 3835fe9a
...@@ -7,4 +7,5 @@ ...@@ -7,4 +7,5 @@
.dockerignore .dockerignore
Dockerfile Dockerfile
/test /test
/dist/test /dist/test
\ No newline at end of file /src
\ No newline at end of file
...@@ -208,16 +208,16 @@ import { Provide } from 'koishi-thirdeye'; ...@@ -208,16 +208,16 @@ import { Provide } from 'koishi-thirdeye';
declare module 'koishi' { declare module 'koishi' {
namespace Context { namespace Context {
interface Services { interface Services {
testProvide: TestProvideService; myService: MyDatabasePlugin;
} }
} }
} }
// `@Provide(name)` 装饰器会自动完成 `Context.service(name)` 的声明操作 // `@Provide(name)` 装饰器会自动完成 `Context.service(name)` 的声明操作
@Injectable() @Provide('myService')
@Provide('testProvide') @KoishiPlugin({ name: 'my-database' })
export class TestProvideService { export class MyDatabasePlugin {
// 该类会作为 Koishi 的 Service 供其他 Koishi 插件进行引用 // 该类会作为 Koishi 的 Service 供其他 Koishi 插件进行引用
} }
``` ```
......
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