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