Commit c7caae80 authored by nanahira's avatar nanahira

minor

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