summaryrefslogtreecommitdiffhomepage
path: root/packages/kernel/src/host/host.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/kernel/src/host/host.ts')
-rw-r--r--packages/kernel/src/host/host.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/kernel/src/host/host.ts b/packages/kernel/src/host/host.ts
index 8aa4f78..a6396a9 100644
--- a/packages/kernel/src/host/host.ts
+++ b/packages/kernel/src/host/host.ts
@@ -125,6 +125,13 @@ export function createHost(extensions: readonly Extension[], deps: HostDeps): Ho
addFilter<TValue>(hook: FilterDescriptor<TValue>, fn: FilterHandler<TValue>) {
return deps.bus.addFilter(hook, fn);
},
+ async applyFilters<TValue>(
+ hook: FilterDescriptor<TValue>,
+ value: TValue,
+ opts?: { readonly failClosed?: boolean },
+ ): Promise<TValue> {
+ return deps.bus.applyFilters(hook, value, opts);
+ },
provideService<T>(handle: ServiceHandle<T>, impl: T) {
deps.bus.provideService(handle, impl);
},