Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
historyReadDetails:
ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails,
timestampsToReturn: TimestampsToReturn,
callback: (err: Error | null, results?: HistoryReadResult) => void
): void {
if (timestampsToReturn === TimestampsToReturn.Invalid) {
callback(null,
new HistoryReadResult({
statusCode: StatusCodes.BadTimestampsToReturnInvalid
}));
return;
}
assert(context instanceof SessionContext);
this._historyReadSingleNode(context,
new HistoryReadValueId({
nodeId
}), historyReadDetails, timestampsToReturn, callback);
}