@umx-bot/core 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,11 @@ export class ServiceContainer {
21
21
  };
22
22
  }
23
23
 
24
+ /** The service behind `token`, or undefined while nobody provides it. */
25
+ public lookup<T>(token: ServiceToken<T>): T | undefined {
26
+ return this.services.get(token.id)?.value as T | undefined;
27
+ }
28
+
24
29
  private provide<T>(
25
30
  plugin: string,
26
31
  token: ServiceToken<T>,