Generify everything a little
This commit is contained in:
15
src/CommonObjects.ts
Normal file
15
src/CommonObjects.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user