Skip to content

Commit adfbe0e

Browse files
committed
let RxDBCollectionConfig extend BaseCollectionConfig
1 parent a7f127e commit adfbe0e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • packages/rxdb-db-collection/src

packages/rxdb-db-collection/src/rxdb.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import type {
1515
} from "rxdb/plugins/core"
1616

1717
import type {
18+
BaseCollectionConfig,
1819
CollectionConfig,
1920
InferSchemaOutput,
2021
SyncConfig,
@@ -45,8 +46,8 @@ export type RxDBCollectionConfig<
4546
T extends object = Record<string, unknown>,
4647
TSchema extends StandardSchemaV1 = never,
4748
> = Omit<
48-
CollectionConfig<T, string, TSchema>,
49-
`insert` | `update` | `delete` | `getKey` | `sync`
49+
BaseCollectionConfig<T, string, TSchema>,
50+
`onInsert` | `onUpdate` | `onDelete` | `getKey`
5051
> & {
5152
/**
5253
* The RxCollection from a RxDB Database instance.

0 commit comments

Comments
 (0)