Skip to content

WoT consume returns an implementation instead of an interface #1331

@RobWin

Description

@RobWin

Hi,
is this correct in the WoT impl ?

The WoT.produce function returns an interface `WoT.ExposedThing?
https://github.com/eclipse-thingweb/node-wot/blob/master/packages/core/src/wot-impl.ts#L125

But WoT.consume function returns an implementation class ConsumedThing instead of the interface WoT.ConsumedThing
Is this correct or a bug?

https://github.com/eclipse-thingweb/node-wot/blob/master/packages/core/src/wot-impl.ts#L104)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions