Skip to content

Commit d6d25d3

Browse files
authored
Merge pull request #1332 from danielpeintner/issue-1331
refactor: Use interface for WoT.consume()
2 parents 8b55ead + bf9084c commit d6d25d3

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/binding-file/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"types": "dist/file.d.ts",
1616
"dependencies": {
1717
"@node-wot/core": "0.8.17",
18-
"rxjs": "^5.5.11"
18+
"rxjs": "5.5.11"
1919
},
2020
"scripts": {
2121
"build": "tsc -b",

packages/binding-mbus/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dependencies": {
1717
"@node-wot/core": "0.8.17",
1818
"node-mbus": "^2.2.4",
19-
"rxjs": "^5.5.11"
19+
"rxjs": "5.5.11"
2020
},
2121
"scripts": {
2222
"build": "tsc -b",

packages/binding-netconf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@node-wot/core": "0.8.17",
1818
"case-1.5.3": "npm:case@^1.5.3",
1919
"node-netconf": "^1.1.2",
20-
"rxjs": "^5.5.11",
20+
"rxjs": "5.5.11",
2121
"url-parse": "^1.5.8"
2222
},
2323
"scripts": {

packages/core/src/wot-impl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { inspect } from "util";
2828
const { debug } = createLoggers("core", "wot-impl");
2929

3030
class ThingDiscoveryProcess implements WoT.ThingDiscoveryProcess {
31-
constructor(private directory: ConsumedThing, public filter?: WoT.ThingFilter) {
31+
constructor(private directory: WoT.ConsumedThing, public filter?: WoT.ThingFilter) {
3232
this.filter = filter;
3333
this.done = false;
3434
}
@@ -101,7 +101,7 @@ export default class WoTImpl {
101101
}
102102

103103
/** @inheritDoc */
104-
async consume(td: WoT.ThingDescription): Promise<ConsumedThing> {
104+
async consume(td: WoT.ThingDescription): Promise<WoT.ConsumedThing> {
105105
try {
106106
const thing = parseTD(JSON.stringify(td), true);
107107
const newThing: ConsumedThing = new ConsumedThing(this.srv, thing as ThingModel);

0 commit comments

Comments
 (0)