From 2c88b9c7207dc2b8217a38912ad8bb8e792809ea Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Fri, 8 Nov 2024 11:26:29 +0100 Subject: [PATCH] refactor: Use interface for consume --- 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 2228bad35..7d8782b42 100644 --- a/packages/core/src/wot-impl.ts +++ b/packages/core/src/wot-impl.ts @@ -28,7 +28,7 @@ import { inspect } from "util"; const { debug } = createLoggers("core", "wot-impl"); class ThingDiscoveryProcess implements WoT.ThingDiscoveryProcess { - constructor(private directory: ConsumedThing, public filter?: WoT.ThingFilter) { + constructor(private directory: WoT.ConsumedThing, public filter?: WoT.ThingFilter) { this.filter = filter; this.done = false; } @@ -101,7 +101,7 @@ export default class WoTImpl { } /** @inheritDoc */ - async consume(td: WoT.ThingDescription): Promise { + async consume(td: WoT.ThingDescription): Promise { try { const thing = parseTD(JSON.stringify(td), true); const newThing: ConsumedThing = new ConsumedThing(this.srv, thing as ThingModel);