Commit b48233f7 authored by nanahira's avatar nanahira

update @ProvideContextService

parent 8e61c888
......@@ -549,6 +549,10 @@ export class AppModule {}
## 更新历史
### 2.0.2
* `@ProvideContextService` 现在可以传入 Options 了。
### 2.0.1
* 优化了 Service 注入的一些逻辑。
......
......@@ -273,8 +273,9 @@ export function WireContextService(
export function ProvideContextService(
name: keyof Context.Services,
options?: Context.Options,
): ClassDecorator {
Context.service(name);
Context.service(name, options);
return AppendMetadata(KoishiServiceProvideSym, name);
}
......
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