node-opcua-convert-nodeset-to-javascript 2.97.0 → 2.98.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dataType.d.ts +10 -10
- package/dist/_dataType.js +152 -152
- package/dist/convert_namespace_to_typescript.d.ts +3 -3
- package/dist/convert_namespace_to_typescript.js +182 -182
- package/dist/convert_to_typescript.d.ts +105 -105
- package/dist/convert_to_typescript.js +753 -753
- package/dist/index.d.ts +3 -3
- package/dist/index.js +19 -19
- package/dist/main.d.ts +1 -1
- package/dist/main.js +77 -77
- package/dist/official_namespaces.d.ts +23 -23
- package/dist/official_namespaces.js +35 -35
- package/dist/options.d.ts +5 -5
- package/dist/options.js +2 -2
- package/dist/private/cache.d.ts +61 -61
- package/dist/private/cache.js +236 -236
- package/dist/private/get_corresponding_data_type.d.ts +14 -14
- package/dist/private/get_corresponding_data_type.js +103 -103
- package/dist/private/to_filename.d.ts +1 -1
- package/dist/private/to_filename.js +9 -9
- package/dist/private/utils.d.ts +31 -31
- package/dist/private/utils.js +291 -291
- package/dist/private-stuff.d.ts +4 -4
- package/dist/private-stuff.js +20 -20
- package/dist/utils2.d.ts +7 -7
- package/dist/utils2.js +57 -57
- package/dist/walk_through.d.ts +13 -13
- package/dist/walk_through.js +86 -86
- package/package.json +24 -20
- package/.eslintignore +0 -3
- package/tsconfig-generated.json +0 -16
package/dist/_dataType.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
2
|
-
import { IBasicSession } from "node-opcua-pseudo-session";
|
|
3
|
-
import { LineFile } from "node-opcua-utils";
|
|
4
|
-
import { Type } from "./convert_to_typescript";
|
|
5
|
-
import { Cache } from "./private/cache";
|
|
6
|
-
export declare function _exportDataTypeToTypescript(session: IBasicSession, nodeId: NodeId, cache: Cache, f?: LineFile): Promise<{
|
|
7
|
-
type: Type;
|
|
8
|
-
content: string;
|
|
9
|
-
typeName: string;
|
|
10
|
-
}>;
|
|
1
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
2
|
+
import { IBasicSession } from "node-opcua-pseudo-session";
|
|
3
|
+
import { LineFile } from "node-opcua-utils";
|
|
4
|
+
import { Type } from "./convert_to_typescript";
|
|
5
|
+
import { Cache } from "./private/cache";
|
|
6
|
+
export declare function _exportDataTypeToTypescript(session: IBasicSession, nodeId: NodeId, cache: Cache, f?: LineFile): Promise<{
|
|
7
|
+
type: Type;
|
|
8
|
+
content: string;
|
|
9
|
+
typeName: string;
|
|
10
|
+
}>;
|
package/dist/_dataType.js
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports._exportDataTypeToTypescript = void 0;
|
|
13
|
-
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
14
|
-
const node_opcua_types_1 = require("node-opcua-types");
|
|
15
|
-
const node_opcua_utils_1 = require("node-opcua-utils");
|
|
16
|
-
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
17
|
-
const private_stuff_1 = require("./private-stuff");
|
|
18
|
-
const cache_1 = require("./private/cache");
|
|
19
|
-
const get_corresponding_data_type_1 = require("./private/get_corresponding_data_type");
|
|
20
|
-
const utils2_1 = require("./utils2");
|
|
21
|
-
// eslint-disable-next-line max-statements, complexity
|
|
22
|
-
function _exportDataTypeToTypescript(session, nodeId, cache, f) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const importCollect = undefined;
|
|
25
|
-
const referenceBasicType = (name) => {
|
|
26
|
-
const t = { name, namespace: -1, module: "BasicType" };
|
|
27
|
-
importCollect && importCollect(t);
|
|
28
|
-
cache.ensureImported(t);
|
|
29
|
-
return t.name;
|
|
30
|
-
};
|
|
31
|
-
f = f || new node_opcua_utils_1.LineFile();
|
|
32
|
-
const importCollector = (i) => {
|
|
33
|
-
cache.ensureImported(i);
|
|
34
|
-
};
|
|
35
|
-
const nodeClass = node_opcua_data_model_1.NodeClass.DataType;
|
|
36
|
-
const description = yield (0, private_stuff_1.getDescription)(session, nodeId);
|
|
37
|
-
const definition = yield (0, private_stuff_1.getDefinition)(session, nodeId);
|
|
38
|
-
const browseName = yield (0, private_stuff_1.getBrowseName)(session, nodeId);
|
|
39
|
-
const isAbstract = yield (0, private_stuff_1.getIsAbstract)(session, nodeId);
|
|
40
|
-
const interfaceImport = (0, private_stuff_1.makeTypeNameNew)(nodeClass, definition, browseName);
|
|
41
|
-
const interfaceName = interfaceImport.name;
|
|
42
|
-
const superType = yield (0, private_stuff_1.getSubtypeNodeId)(session, nodeId);
|
|
43
|
-
const baseInterfaceImport = (0, private_stuff_1.makeTypeNameNew)(nodeClass, definition, superType.browseName);
|
|
44
|
-
cache.ensureImported(baseInterfaceImport);
|
|
45
|
-
const baseInterfaceName = baseInterfaceImport.name;
|
|
46
|
-
// f.write(superType.toString());
|
|
47
|
-
f.write(`/**`);
|
|
48
|
-
if (description.text) {
|
|
49
|
-
f.write((0, utils2_1.toComment)(" * ", description.text || ""));
|
|
50
|
-
f.write(` *`);
|
|
51
|
-
}
|
|
52
|
-
f.write(` * | |${(0, utils2_1.f1)(" ")}|`);
|
|
53
|
-
f.write(` * |-----------|${(0, utils2_1.f2)("-")}|`);
|
|
54
|
-
f.write(` * | namespace |${(0, utils2_1.f1)(cache.namespace[nodeId.namespace].namespaceUri)}|`);
|
|
55
|
-
f.write(` * | nodeClass |${(0, utils2_1.f1)(node_opcua_data_model_1.NodeClass[nodeClass])}|`);
|
|
56
|
-
f.write(` * | name |${(0, utils2_1.f1)(browseName.toString())}|`);
|
|
57
|
-
f.write(` * | isAbstract|${(0, utils2_1.f1)(isAbstract.toString())}|`);
|
|
58
|
-
f.write(` */`);
|
|
59
|
-
let type = "basic";
|
|
60
|
-
if (definition instanceof node_opcua_types_1.EnumDefinition) {
|
|
61
|
-
type = "enum";
|
|
62
|
-
f.write(`export enum ${interfaceName} {`);
|
|
63
|
-
for (const field of definition.fields) {
|
|
64
|
-
if (field.description.text) {
|
|
65
|
-
f.write(` /**`);
|
|
66
|
-
f.write((0, utils2_1.toComment)(" * ", field.description.text || ""));
|
|
67
|
-
f.write(` */`);
|
|
68
|
-
}
|
|
69
|
-
f.write(` ${(0, utils2_1.quotifyIfNecessary)(field.name)} = ${field.value[1]},`);
|
|
70
|
-
}
|
|
71
|
-
f.write(`}`);
|
|
72
|
-
}
|
|
73
|
-
else if (definition instanceof node_opcua_types_1.StructureDefinition) {
|
|
74
|
-
if (baseInterfaceName === "DTUnion") {
|
|
75
|
-
type = "structure";
|
|
76
|
-
for (let i = 0; i < definition.fields.length; i++) {
|
|
77
|
-
f.write(`export interface ${interfaceName}_${i} extends ${baseInterfaceName} {`);
|
|
78
|
-
for (let j = 0; j < definition.fields.length; j++) {
|
|
79
|
-
const field = definition.fields[j];
|
|
80
|
-
const fieldName = (0, utils2_1.toJavascritPropertyName)(field.name, { ignoreConflictingName: false });
|
|
81
|
-
if (j === i) {
|
|
82
|
-
yield outputStructureField(f, field);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
f.write(` ${(0, utils2_1.quotifyIfNecessary)(fieldName)}?: never`);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
f.write(`}`);
|
|
89
|
-
}
|
|
90
|
-
f.write(`export type ${interfaceName} = `);
|
|
91
|
-
for (let i = 0; i < definition.fields.length; i++) {
|
|
92
|
-
f.write(` | ${interfaceName}_${i}`);
|
|
93
|
-
}
|
|
94
|
-
f.write(` ;`);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
type = "structure";
|
|
98
|
-
if (!definition.fields.length && interfaceName !== "DTStructure") {
|
|
99
|
-
f.write(`export type ${interfaceName} = ${baseInterfaceName};`);
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
if (interfaceName === "DTStructure") {
|
|
103
|
-
f.write(`export interface ${interfaceName} {`);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
f.write(`export interface ${interfaceName} extends ${baseInterfaceName} {`);
|
|
107
|
-
}
|
|
108
|
-
for (const field of definition.fields) {
|
|
109
|
-
yield outputStructureField(f, field);
|
|
110
|
-
}
|
|
111
|
-
f.write(`}`);
|
|
112
|
-
//
|
|
113
|
-
referenceBasicType("ExtensionObject");
|
|
114
|
-
// ache.ensureImported({ module: "BasicType", name: "ExtensionObject", namespace: 0 });
|
|
115
|
-
// interface TighteningResultOptions extends Partial<DTTighteningResult> {}
|
|
116
|
-
// interface TighteningResult extends ExtensionObject, DTTighteningResult {}
|
|
117
|
-
const full = (0, cache_1.makeName2)(interfaceName);
|
|
118
|
-
// filter issue with UDTOpticalVerifierScanResult that has a decode:Uint32 conflicting with the ExtensionObject decode method
|
|
119
|
-
const toAvoid = ["decode", "encode"];
|
|
120
|
-
const collidingNames = definition
|
|
121
|
-
.fields.map((a) => (0, utils2_1.toJavascritPropertyName)(a.name, { ignoreConflictingName: false }))
|
|
122
|
-
.filter((d) => toAvoid.indexOf(d.toLowerCase()) !== -1);
|
|
123
|
-
const adpatedIntefaceName = collidingNames.length === 0
|
|
124
|
-
? interfaceName
|
|
125
|
-
: `Omit<${interfaceName},${collidingNames.map((a) => `"${a}"`).join(",")}>`;
|
|
126
|
-
f.write(`export interface ${full} extends ExtensionObject, ${adpatedIntefaceName} {};`);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
type = "basic";
|
|
132
|
-
f.write(`// NO DEFINITION`);
|
|
133
|
-
f.write(`export type ${interfaceName} = ${baseInterfaceName};`);
|
|
134
|
-
// throw new Error("Invalid " + definition?.constructor.name);
|
|
135
|
-
}
|
|
136
|
-
return { type, content: f.toString(), typeName: interfaceName };
|
|
137
|
-
function outputStructureField(f, field) {
|
|
138
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
-
const fieldName = (0, utils2_1.toJavascritPropertyName)(field.name, { ignoreConflictingName: false });
|
|
140
|
-
// special case ! fieldName=
|
|
141
|
-
if (field.description.text) {
|
|
142
|
-
f.write(` /** ${field.description.text}*/`);
|
|
143
|
-
}
|
|
144
|
-
const opt = field.isOptional ? "?" : "";
|
|
145
|
-
const arrayMarker = field.valueRank >= 1 ? "[]" : "";
|
|
146
|
-
const { dataType, jtype } = yield (0, get_corresponding_data_type_1.getCorrepondingJavascriptType)(session, field.dataType, cache, importCollector);
|
|
147
|
-
f.write(` ${(0, utils2_1.quotifyIfNecessary)(fieldName)}${opt}: ${jtype}${arrayMarker}; // ${node_opcua_variant_1.DataType[dataType]} ${field.dataType.toString()}`);
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
exports._exportDataTypeToTypescript = _exportDataTypeToTypescript;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports._exportDataTypeToTypescript = void 0;
|
|
13
|
+
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
14
|
+
const node_opcua_types_1 = require("node-opcua-types");
|
|
15
|
+
const node_opcua_utils_1 = require("node-opcua-utils");
|
|
16
|
+
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
17
|
+
const private_stuff_1 = require("./private-stuff");
|
|
18
|
+
const cache_1 = require("./private/cache");
|
|
19
|
+
const get_corresponding_data_type_1 = require("./private/get_corresponding_data_type");
|
|
20
|
+
const utils2_1 = require("./utils2");
|
|
21
|
+
// eslint-disable-next-line max-statements, complexity
|
|
22
|
+
function _exportDataTypeToTypescript(session, nodeId, cache, f) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const importCollect = undefined;
|
|
25
|
+
const referenceBasicType = (name) => {
|
|
26
|
+
const t = { name, namespace: -1, module: "BasicType" };
|
|
27
|
+
importCollect && importCollect(t);
|
|
28
|
+
cache.ensureImported(t);
|
|
29
|
+
return t.name;
|
|
30
|
+
};
|
|
31
|
+
f = f || new node_opcua_utils_1.LineFile();
|
|
32
|
+
const importCollector = (i) => {
|
|
33
|
+
cache.ensureImported(i);
|
|
34
|
+
};
|
|
35
|
+
const nodeClass = node_opcua_data_model_1.NodeClass.DataType;
|
|
36
|
+
const description = yield (0, private_stuff_1.getDescription)(session, nodeId);
|
|
37
|
+
const definition = yield (0, private_stuff_1.getDefinition)(session, nodeId);
|
|
38
|
+
const browseName = yield (0, private_stuff_1.getBrowseName)(session, nodeId);
|
|
39
|
+
const isAbstract = yield (0, private_stuff_1.getIsAbstract)(session, nodeId);
|
|
40
|
+
const interfaceImport = (0, private_stuff_1.makeTypeNameNew)(nodeClass, definition, browseName);
|
|
41
|
+
const interfaceName = interfaceImport.name;
|
|
42
|
+
const superType = yield (0, private_stuff_1.getSubtypeNodeId)(session, nodeId);
|
|
43
|
+
const baseInterfaceImport = (0, private_stuff_1.makeTypeNameNew)(nodeClass, definition, superType.browseName);
|
|
44
|
+
cache.ensureImported(baseInterfaceImport);
|
|
45
|
+
const baseInterfaceName = baseInterfaceImport.name;
|
|
46
|
+
// f.write(superType.toString());
|
|
47
|
+
f.write(`/**`);
|
|
48
|
+
if (description.text) {
|
|
49
|
+
f.write((0, utils2_1.toComment)(" * ", description.text || ""));
|
|
50
|
+
f.write(` *`);
|
|
51
|
+
}
|
|
52
|
+
f.write(` * | |${(0, utils2_1.f1)(" ")}|`);
|
|
53
|
+
f.write(` * |-----------|${(0, utils2_1.f2)("-")}|`);
|
|
54
|
+
f.write(` * | namespace |${(0, utils2_1.f1)(cache.namespace[nodeId.namespace].namespaceUri)}|`);
|
|
55
|
+
f.write(` * | nodeClass |${(0, utils2_1.f1)(node_opcua_data_model_1.NodeClass[nodeClass])}|`);
|
|
56
|
+
f.write(` * | name |${(0, utils2_1.f1)(browseName.toString())}|`);
|
|
57
|
+
f.write(` * | isAbstract|${(0, utils2_1.f1)(isAbstract.toString())}|`);
|
|
58
|
+
f.write(` */`);
|
|
59
|
+
let type = "basic";
|
|
60
|
+
if (definition instanceof node_opcua_types_1.EnumDefinition) {
|
|
61
|
+
type = "enum";
|
|
62
|
+
f.write(`export enum ${interfaceName} {`);
|
|
63
|
+
for (const field of definition.fields) {
|
|
64
|
+
if (field.description.text) {
|
|
65
|
+
f.write(` /**`);
|
|
66
|
+
f.write((0, utils2_1.toComment)(" * ", field.description.text || ""));
|
|
67
|
+
f.write(` */`);
|
|
68
|
+
}
|
|
69
|
+
f.write(` ${(0, utils2_1.quotifyIfNecessary)(field.name)} = ${field.value[1]},`);
|
|
70
|
+
}
|
|
71
|
+
f.write(`}`);
|
|
72
|
+
}
|
|
73
|
+
else if (definition instanceof node_opcua_types_1.StructureDefinition) {
|
|
74
|
+
if (baseInterfaceName === "DTUnion") {
|
|
75
|
+
type = "structure";
|
|
76
|
+
for (let i = 0; i < definition.fields.length; i++) {
|
|
77
|
+
f.write(`export interface ${interfaceName}_${i} extends ${baseInterfaceName} {`);
|
|
78
|
+
for (let j = 0; j < definition.fields.length; j++) {
|
|
79
|
+
const field = definition.fields[j];
|
|
80
|
+
const fieldName = (0, utils2_1.toJavascritPropertyName)(field.name, { ignoreConflictingName: false });
|
|
81
|
+
if (j === i) {
|
|
82
|
+
yield outputStructureField(f, field);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
f.write(` ${(0, utils2_1.quotifyIfNecessary)(fieldName)}?: never`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
f.write(`}`);
|
|
89
|
+
}
|
|
90
|
+
f.write(`export type ${interfaceName} = `);
|
|
91
|
+
for (let i = 0; i < definition.fields.length; i++) {
|
|
92
|
+
f.write(` | ${interfaceName}_${i}`);
|
|
93
|
+
}
|
|
94
|
+
f.write(` ;`);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
type = "structure";
|
|
98
|
+
if (!definition.fields.length && interfaceName !== "DTStructure") {
|
|
99
|
+
f.write(`export type ${interfaceName} = ${baseInterfaceName};`);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
if (interfaceName === "DTStructure") {
|
|
103
|
+
f.write(`export interface ${interfaceName} {`);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
f.write(`export interface ${interfaceName} extends ${baseInterfaceName} {`);
|
|
107
|
+
}
|
|
108
|
+
for (const field of definition.fields) {
|
|
109
|
+
yield outputStructureField(f, field);
|
|
110
|
+
}
|
|
111
|
+
f.write(`}`);
|
|
112
|
+
//
|
|
113
|
+
referenceBasicType("ExtensionObject");
|
|
114
|
+
// ache.ensureImported({ module: "BasicType", name: "ExtensionObject", namespace: 0 });
|
|
115
|
+
// interface TighteningResultOptions extends Partial<DTTighteningResult> {}
|
|
116
|
+
// interface TighteningResult extends ExtensionObject, DTTighteningResult {}
|
|
117
|
+
const full = (0, cache_1.makeName2)(interfaceName);
|
|
118
|
+
// filter issue with UDTOpticalVerifierScanResult that has a decode:Uint32 conflicting with the ExtensionObject decode method
|
|
119
|
+
const toAvoid = ["decode", "encode"];
|
|
120
|
+
const collidingNames = definition
|
|
121
|
+
.fields.map((a) => (0, utils2_1.toJavascritPropertyName)(a.name, { ignoreConflictingName: false }))
|
|
122
|
+
.filter((d) => toAvoid.indexOf(d.toLowerCase()) !== -1);
|
|
123
|
+
const adpatedIntefaceName = collidingNames.length === 0
|
|
124
|
+
? interfaceName
|
|
125
|
+
: `Omit<${interfaceName},${collidingNames.map((a) => `"${a}"`).join(",")}>`;
|
|
126
|
+
f.write(`export interface ${full} extends ExtensionObject, ${adpatedIntefaceName} {};`);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
type = "basic";
|
|
132
|
+
f.write(`// NO DEFINITION`);
|
|
133
|
+
f.write(`export type ${interfaceName} = ${baseInterfaceName};`);
|
|
134
|
+
// throw new Error("Invalid " + definition?.constructor.name);
|
|
135
|
+
}
|
|
136
|
+
return { type, content: f.toString(), typeName: interfaceName };
|
|
137
|
+
function outputStructureField(f, field) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
const fieldName = (0, utils2_1.toJavascritPropertyName)(field.name, { ignoreConflictingName: false });
|
|
140
|
+
// special case ! fieldName=
|
|
141
|
+
if (field.description.text) {
|
|
142
|
+
f.write(` /** ${field.description.text}*/`);
|
|
143
|
+
}
|
|
144
|
+
const opt = field.isOptional ? "?" : "";
|
|
145
|
+
const arrayMarker = field.valueRank >= 1 ? "[]" : "";
|
|
146
|
+
const { dataType, jtype } = yield (0, get_corresponding_data_type_1.getCorrepondingJavascriptType)(session, field.dataType, cache, importCollector);
|
|
147
|
+
f.write(` ${(0, utils2_1.quotifyIfNecessary)(fieldName)}${opt}: ${jtype}${arrayMarker}; // ${node_opcua_variant_1.DataType[dataType]} ${field.dataType.toString()}`);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
exports._exportDataTypeToTypescript = _exportDataTypeToTypescript;
|
|
153
153
|
//# sourceMappingURL=_dataType.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IBasicSession } from "node-opcua-pseudo-session";
|
|
2
|
-
import { Options } from "./options";
|
|
3
|
-
export declare function convertNamespaceTypeToTypescript(session: IBasicSession, namespaceIndex: number, options: Options): Promise<void>;
|
|
1
|
+
import { IBasicSession } from "node-opcua-pseudo-session";
|
|
2
|
+
import { Options } from "./options";
|
|
3
|
+
export declare function convertNamespaceTypeToTypescript(session: IBasicSession, namespaceIndex: number, options: Options): Promise<void>;
|