You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a types-only change.
The `Namespace` type is pretty central, but was stuffed away in
`core-manager/index.js`. Its type was also inferred in many cases.
Now it's in a more central spot: `types.ts`.
I think this is useful on its own, but it should make a future change
easier.
@@ -86,7 +87,7 @@ export class MapeoManager extends TypedEmitter {
86
87
// Maps project public id -> project instance
87
88
/** @type {Map<string, MapeoProject>} */
88
89
#activeProjects
89
-
/** @type {import('./types.js').CoreStorage} */
90
+
/** @type {CoreStorage} */
90
91
#coreStorage
91
92
#dbFolder
92
93
/** @type {string} */
@@ -106,7 +107,7 @@ export class MapeoManager extends TypedEmitter {
106
107
* @param {string} opts.dbFolder Folder for sqlite Dbs. Folder must exist. Use ':memory:' to store everything in-memory
107
108
* @param {string} opts.projectMigrationsFolder path for drizzle migrations folder for project database
108
109
* @param {string} opts.clientMigrationsFolder path for drizzle migrations folder for client database
109
-
* @param {string | import('./types.js').CoreStorage} opts.coreStorage Folder for hypercore storage or a function that returns a RandomAccessStorage instance
110
+
* @param {string | CoreStorage} opts.coreStorage Folder for hypercore storage or a function that returns a RandomAccessStorage instance
110
111
* @param {import('fastify').FastifyInstance} opts.fastify Fastify server instance
111
112
* @param {String} [opts.defaultConfigPath]
112
113
*/
@@ -359,7 +360,7 @@ export class MapeoManager extends TypedEmitter {
0 commit comments