@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 +1 -1
- package/pkg/ridb_core.d.ts +2 -2
package/package.json
CHANGED
package/pkg/ridb_core.d.ts
CHANGED
|
@@ -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
|
|
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]> |
|
|
571
|
+
): Promise<Doc<Schemas[keyof Schemas]> | null>;
|
|
572
572
|
abstract find(
|
|
573
573
|
collectionName: keyof Schemas,
|
|
574
574
|
query: QueryType<Schemas[keyof Schemas]>,
|