parent
d8cc7d9979
commit
82f4bdff04
14 changed files with 26 additions and 60 deletions
@ -1,30 +1,12 @@ |
||||
type AsyncAnvilAccessModuleCloseArgs = { |
||||
ecode: number | null; |
||||
signal: NodeJS.Signals | null; |
||||
stderr: string; |
||||
stdout: unknown; |
||||
}; |
||||
|
||||
type AsyncDatabaseWriteCloseArgs = AsyncAnvilAccessModuleCloseArgs & { |
||||
wcode: number | null; |
||||
}; |
||||
|
||||
type AsyncAnvilAccessModuleCloseHandler = ( |
||||
args: AsyncAnvilAccessModuleCloseArgs, |
||||
) => void; |
||||
|
||||
type AsyncDatabaseWriteCloseHandler = ( |
||||
args: AsyncDatabaseWriteCloseArgs, |
||||
) => void; |
||||
type AccessStartOptions = { |
||||
args?: readonly string[]; |
||||
} & import('child_process').SpawnOptions; |
||||
|
||||
type AsyncAnvilAccessModuleOptions = import('child_process').SpawnOptions & { |
||||
onClose?: AsyncAnvilAccessModuleCloseHandler; |
||||
onError?: (err: Error) => void; |
||||
type SubroutineCommonParams = { |
||||
debug?: number; |
||||
}; |
||||
|
||||
type AsyncDatabaseWriteOptions = Omit< |
||||
AsyncAnvilAccessModuleOptions, |
||||
'onClose' |
||||
> & { |
||||
onClose?: AsyncDatabaseWriteCloseHandler; |
||||
type InsertOrUpdateFunctionCommonParams = SubroutineCommonParams & { |
||||
file: string; |
||||
line?: number; |
||||
}; |
||||
|
@ -0,0 +1,3 @@ |
||||
type JobAnvilSyncSharedOptions = { |
||||
jobHostUUID?: string; |
||||
}; |
@ -1,4 +0,0 @@ |
||||
type DBInsertOrUpdateFunctionCommonParams = ModuleSubroutineCommonParams & { |
||||
file: string; |
||||
line?: number; |
||||
}; |
@ -1,3 +0,0 @@ |
||||
type DBJobAnvilSyncSharedOptions = { |
||||
jobHostUUID?: string; |
||||
}; |
@ -1,5 +0,0 @@ |
||||
type ExecModuleSubroutineOptions = { |
||||
spawnSyncOptions?: import('child_process').SpawnSyncOptions; |
||||
subModuleName?: string; |
||||
subParams?: Record<string, unknown>; |
||||
}; |
@ -1,4 +1,4 @@ |
||||
type DBJobParams = DBInsertOrUpdateFunctionCommonParams & { |
||||
type JobParams = InsertOrUpdateFunctionCommonParams & { |
||||
job_command: string; |
||||
job_data?: string; |
||||
job_name: string; |
@ -1,3 +0,0 @@ |
||||
type ModuleSubroutineCommonParams = { |
||||
debug?: number; |
||||
}; |
Loading…
Reference in new issue