parent
5c7ddbfb5e
commit
d9e38d87e2
3 changed files with 54 additions and 31 deletions
@ -1,9 +1,30 @@ |
||||
type AsyncAnvilAccessModuleOptions = import('child_process').SpawnOptions & { |
||||
onClose?: (args: { |
||||
type AsyncAnvilAccessModuleCloseArgs = { |
||||
ecode: number | null; |
||||
signal: NodeJS.Signals | null; |
||||
stderr: string; |
||||
stdout: unknown; |
||||
}) => void; |
||||
}; |
||||
|
||||
type AsyncDatabaseWriteCloseArgs = AsyncAnvilAccessModuleCloseArgs & { |
||||
wcode: number | null; |
||||
}; |
||||
|
||||
type AsyncAnvilAccessModuleCloseHandler = ( |
||||
args: AsyncAnvilAccessModuleCloseArgs, |
||||
) => void; |
||||
|
||||
type AsyncDatabaseWriteCloseHandler = ( |
||||
args: AsyncDatabaseWriteCloseArgs, |
||||
) => void; |
||||
|
||||
type AsyncAnvilAccessModuleOptions = import('child_process').SpawnOptions & { |
||||
onClose?: AsyncAnvilAccessModuleCloseHandler; |
||||
onError?: (err: Error) => void; |
||||
}; |
||||
|
||||
type AsyncDatabaseWriteOptions = Omit< |
||||
AsyncAnvilAccessModuleOptions, |
||||
'onClose' |
||||
> & { |
||||
onClose?: AsyncDatabaseWriteCloseHandler; |
||||
}; |
||||
|
Loading…
Reference in new issue