Generify everything a little

This commit is contained in:
David Majdandžić
2023-03-30 17:50:49 +02:00
parent a34d393c01
commit 2374cba341
10 changed files with 70 additions and 40 deletions

15
src/CommonObjects.ts Normal file
View File

@@ -0,0 +1,15 @@
export type PDU = {
command?: string;
command_status?: number;
system_id?: string;
password?: string;
source_addr?: string;
destination_addr?: string;
short_message?: string;
response?: (...args: any[]) => PDU;
}
export type SerializedJob = {
pdu: PDU;
perSecond?: number;
count?: number;
}