@trust0/ridb-core 1.4.0-rc.2 → 1.4.0-rc.4

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "1.4.0-rc.2",
8
+ "version": "1.4.0-rc.4",
9
9
  "main": "./pkg/ridb_core.js",
10
10
  "types": "./pkg/ridb_core.d.ts",
11
11
  "sideEffects": [
@@ -270,7 +270,7 @@ export class BaseStorage<Schemas extends SchemaTypeRecord> extends StorageIntern
270
270
  start(): Promise<void>;
271
271
  close(): Promise<void>;
272
272
  count(colectionName: keyof Schemas, query: QueryType<Schemas[keyof Schemas]>, options?: QueryOptions): Promise<number>;
273
- findDocumentById(collectionName: keyof Schemas, id: string): Promise<Doc<Schemas[keyof Schemas]> | null | undefined>;
273
+ findDocumentById(collectionName: keyof Schemas, id: string): Promise<Doc<Schemas[keyof Schemas]> | null>;
274
274
  find(collectionName: keyof Schemas, query: QueryType<Schemas[keyof Schemas]>, options?: QueryOptions): Promise<Doc<Schemas[keyof Schemas]>[]>;
275
275
  write(op: Operation<Schemas[keyof Schemas]>): Promise<Doc<Schemas[keyof Schemas]>>;
276
276
  getOption(name: string): string | boolean | number | undefined;
@@ -568,7 +568,7 @@ export abstract class StorageInternal<Schemas extends SchemaTypeRecord> {
568
568
  abstract findDocumentById(
569
569
  collectionName: keyof Schemas,
570
570
  id: string
571
- ): Promise<Doc<Schemas[keyof Schemas]> | undefined | null>;
571
+ ): Promise<Doc<Schemas[keyof Schemas]> | null>;
572
572
  abstract find(
573
573
  collectionName: keyof Schemas,
574
574
  query: QueryType<Schemas[keyof Schemas]>,