@logux/server 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/postgres-store/index.d.ts +4 -11
package/package.json
CHANGED
|
@@ -5,16 +5,11 @@ import type {
|
|
|
5
5
|
Criteria,
|
|
6
6
|
LogPage,
|
|
7
7
|
LogStore,
|
|
8
|
-
Meta
|
|
8
|
+
Meta,
|
|
9
|
+
GetOptions,
|
|
10
|
+
LastSynced
|
|
9
11
|
} from '@logux/core'
|
|
10
12
|
|
|
11
|
-
/**
|
|
12
|
-
* Logux declares these two, but does not export them, so they are taken
|
|
13
|
-
* from the methods not to repeat the definition here.
|
|
14
|
-
*/
|
|
15
|
-
type GetOptions = NonNullable<Parameters<LogStore['get']>[0]>
|
|
16
|
-
type LastSynced = Awaited<ReturnType<LogStore['getLastSynced']>>
|
|
17
|
-
|
|
18
13
|
/**
|
|
19
14
|
* Rows of the query. `pg` and PGlite keep them in the result object,
|
|
20
15
|
* `postgres` returns them as an array.
|
|
@@ -107,9 +102,7 @@ export interface PostgresStoreOptions<Packers = Record<string, never>> {
|
|
|
107
102
|
*/
|
|
108
103
|
export class PostgresStore<
|
|
109
104
|
Packers extends ActionPackerMap<Packers> = Record<string, never>
|
|
110
|
-
>
|
|
111
|
-
implements LogStore
|
|
112
|
-
{
|
|
105
|
+
> implements LogStore {
|
|
113
106
|
constructor(
|
|
114
107
|
db: PostgresDriver | PostgresQuery,
|
|
115
108
|
opts?: PostgresStoreOptions<Packers>
|