Skip to content

Commit

Permalink
refactor: Use interface for consume
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeintner committed Nov 8, 2024
1 parent 8b55ead commit 2c88b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/wot-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -101,7 +101,7 @@ export default class WoTImpl {
}

/** @inheritDoc */
async consume(td: WoT.ThingDescription): Promise<ConsumedThing> {
async consume(td: WoT.ThingDescription): Promise<WoT.ConsumedThing> {
try {
const thing = parseTD(JSON.stringify(td), true);
const newThing: ConsumedThing = new ConsumedThing(this.srv, thing as ThingModel);
Expand Down

0 comments on commit 2c88b9c

Please sign in to comment.