Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function browsePathPropertyRequest(nodeId: NodeIdLike, propertyName: string): BrowsePath {
return new BrowsePath({
relativePath: /* RelativePath */ {
elements: /* RelativePathElement */ [
{
includeSubtypes: false,
isInverse: false,
referenceTypeId: hasPropertyRefId,
targetName: {namespaceIndex: 0, name: propertyName}
}
]
},
startingNode: /* NodeId */ nodeId,
});
}