We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f69a3b + 901a3cb commit 15c5af7Copy full SHA for 15c5af7
1 file changed
packages/td-tools/src/td-helpers.ts
@@ -23,13 +23,18 @@
23
24
import ThingDescription from "./thing-description";
25
26
-// need two tests
+/**
27
+ * @deprecated This function will be removed in the future. Please use '@thingweb/td-utils' package instead.
28
+ */
29
export function findProtocol(td: ThingDescription): string {
30
const base: string = td.base;
31
const columnLoc: number = base.indexOf(":");
32
return base.substring(0, columnLoc);
33
}
34
35
36
37
38
export function findPort(td: ThingDescription): number {
39
40
const columnLoc: number = base.indexOf(":", 6);
0 commit comments