ts-ssp
Version:
NodeJS library to work with coin and bill acceptors under SSP protocol. Written in Typescript.
6 lines (5 loc) • 345 B
TypeScript
/// <reference types="node" />
import SSPCommands from "./SSPCommands";
import { SSPType } from "./types";
export declare const getErrorMessageFromErrorCode: (errorCode: number) => string | undefined;
export declare const getEventFromBuffer: <Type extends SSPType>(buffer: Buffer, commands: SSPCommands<Type>) => [string, ...any[]] | undefined;