UNPKG
@arturwojnar/hermes-postgresql
Version:
latest (1.0.0-alpha.12)
1.0.0-alpha.12
1.0.0-alpha.11
1.0.0-alpha.10
1.0.0-alpha.9
1.0.0-alpha.8
Production-Ready TypeScript Outbox Pattern for PostgreSQL
docs.hermesjs.tech
arturwojnar/hermes
@arturwojnar/hermes-postgresql
/
lib
/
common
/
createAsyncOpsQueue.d.ts
7 lines
(6 loc)
•
216 B
TypeScript
View Raw
1
2
3
4
5
6
7
type
Item
<T =
unknown
> =
() =>
Promise
<T>;
declare
const
createAsyncOpsQueue
: <T =
unknown
>
() =>
{
queue
:
(
op
:
Item
<T>
) =>
Item
<T>;
waitFor
:
(
op
:
Item
<T>
) =>
Promise
<
void
>; };
export
{ createAsyncOpsQueue };