node-opcua-address-space 2.167.0 → 2.168.0

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.
@@ -1,20 +1,20 @@
1
1
  /**
2
2
  * @module node-opcua-address-space.Private
3
3
  */
4
- import { assert } from "node-opcua-assert";
5
- import { NodeId } from "node-opcua-nodeid";
6
- import {
4
+ import type {
7
5
  AddReferenceOpts,
8
6
  BaseNode,
9
7
  ConstructNodeIdOptions,
10
8
  CreateNodeOptions,
11
- ModellingRuleType,
12
9
  INamespace,
10
+ ModellingRuleType,
11
+ RequiredModel,
13
12
  UADataType,
14
- RequiredModel
15
13
  } from "node-opcua-address-space-base";
14
+ import { assert } from "node-opcua-assert";
15
+ import type { NodeId } from "node-opcua-nodeid";
16
16
 
17
- import { AddressSpacePrivate } from "./address_space_private";
17
+ import type { AddressSpacePrivate } from "./address_space_private";
18
18
 
19
19
 
20
20
  export interface NamespacePrivate extends INamespace {
@@ -40,10 +40,16 @@ export interface NamespacePrivate extends INamespace {
40
40
 
41
41
  registerSymbolicNames: boolean;
42
42
 
43
+ _aliasCount(): number;
44
+ _objectTypeCount(): number;
45
+ _variableTypeCount(): number;
46
+ _dataTypeCount(): number;
47
+ _referenceTypeCount(): number;
48
+
43
49
 
44
50
  }
45
51
 
46
- export declare const NamespacePrivate: new (options: any) => NamespacePrivate;
52
+ export declare const NamespacePrivate: new (options: unknown) => NamespacePrivate;
47
53
 
48
54
  function isValidModellingRule(ruleName: string) {
49
55
  return (
@@ -62,12 +68,12 @@ function isValidModellingRule(ruleName: string) {
62
68
  * @private
63
69
  */
64
70
  export function UANamespace_process_modelling_rule(
65
- references: AddReferenceOpts[],
71
+ references: AddReferenceOpts[],
66
72
  modellingRule?: ModellingRuleType
67
73
  ): void {
68
74
  if (modellingRule) {
69
75
  assert(isValidModellingRule(modellingRule), "expecting a valid modelling rule");
70
- const modellingRuleName = "ModellingRule_" + modellingRule;
76
+ const modellingRuleName = `ModellingRule_${modellingRule}`;
71
77
  // assert(this.findNode(modellingRuleName),"Modelling rule must exist");
72
78
  references.push({
73
79
  nodeId: modellingRuleName,