type Collections = Record<CollectionPath, {
collectionPath: CollectionPath;
schema: typeof Schema.Class;
}>;
class SomeSchemaClass extends Schema.Class<SomeSchemaClass>("SomeSchemaClass")({
...
}) {}
export const Collections: Collections = {
someSchemaClass: {collectionPath: 'someSchemaClass', schema: SomeSchemaClass}
};
type Collections = Record<CollectionPath, {
collectionPath: CollectionPath;
schema: typeof Schema.Class;
}>;
class SomeSchemaClass extends Schema.Class<SomeSchemaClass>("SomeSchemaClass")({
...
}) {}
export const Collections: Collections = {
someSchemaClass: {collectionPath: 'someSchemaClass', schema: SomeSchemaClass}
};