From ccd7751b1e42072903f52f44a38c1d926b0a3ff9 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Tue, 21 Nov 2023 14:21:36 +0100 Subject: [PATCH] fixup! feat!: add proposal for new discovery API --- packages/core/src/wot-impl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/wot-impl.ts b/packages/core/src/wot-impl.ts index 1728260cb..1b9a05339 100644 --- a/packages/core/src/wot-impl.ts +++ b/packages/core/src/wot-impl.ts @@ -69,8 +69,8 @@ export default class WoTImpl { } /** @inheritDoc */ - async *exploreDirectory(url: string, filter?: WoT.ThingFilter): AsyncGenerator { - yield Promise.reject(new Error("Unimplemented")); + async exploreDirectory(url: string, filter?: WoT.ThingFilter): Promise { + return new ThingDiscoveryProcess(filter); } /** @inheritDoc */