-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: jsdoc types def * fix: typo
- Loading branch information
Showing
2 changed files
with
32 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import { MycroDatabase } from "./core/MycroDatabase.js"; | ||
|
||
// STORAGES | ||
import { JsonStorage } from "./storage/json.js"; | ||
import { MemoryStorage } from "./storage/memory.js"; | ||
import { TypedJsonStorage } from "./storage/typedJson.js"; | ||
|
||
export { JsonStorage, MemoryStorage, MycroDatabase, TypedJsonStorage }; | ||
import { MycroDatabase } from "./core/MycroDatabase.js"; | ||
|
||
import { JsonStorage } from "./storage/json.js"; | ||
import { MemoryStorage } from "./storage/memory.js"; | ||
import { TypedJsonStorage } from "./storage/typedJson.js"; | ||
|
||
export { JsonStorage, MemoryStorage, MycroDatabase, TypedJsonStorage }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
/** | ||
* @typedef {object} StoragePlugin | ||
* @property {Function?} count - The count function. | ||
* @property {Function?} create - The create function. | ||
* @property {Function?} get - The get function. | ||
* @property {Function?} insert - The insert function. | ||
* @property {Function?} query - The query function. | ||
* @property {Function} read - The read function. | ||
* @property {Function?} remove - The remove function. | ||
* @property {Function?} sync - The sync function. | ||
* @property {Function?} update - The update function. | ||
* @property {Function} write - The write function. | ||
*/ | ||
|
||
/** | ||
* @template Model The type of the documents in the collection. | ||
* | ||
* Represents a collection of documents. | ||
* @typedef {object} CollectionRef | ||
* @property {string} identifier The identifier for the collection. | ||
* @property {StoragePlugin} storage The storage object for the collection. | ||
* @property {{id: number, documents: Object<string, Model>}} memory The memory object for the collection. | ||
*/ | ||
|
||
export const _ = ""; | ||
/** | ||
* @typedef StoragePlugin | ||
* @property {Function?} count - The count function. | ||
* @property {Function?} create - The create function. | ||
* @property {Function?} get - The get function. | ||
* @property {Function?} insert - The insert function. | ||
* @property {Function?} query - The query function. | ||
* @property {Function} read - The read function. | ||
* @property {Function?} remove - The remove function. | ||
* @property {Function?} sync - The sync function. | ||
* @property {Function?} update - The update function. | ||
* @property {Function} write - The write function. | ||
*/ | ||
|
||
/** | ||
* @template Model The type of the documents in the collection | ||
* | ||
* Represents a collection of documents | ||
* @typedef CollectionRef | ||
* @property {string} identifier The identifier for the collection. | ||
* @property {StoragePlugin} storage The storage object for the collection. | ||
* @property {{id: number, documents: Object<string, Model>}} memory The memory object for the collection. | ||
*/ | ||
|
||
export const _ = ""; |