fix: export collectionTemplates

This commit is contained in:
Chareice 2023-02-24 20:49:00 +08:00
parent c9572fc9f6
commit 8e11e4d561

View File

@ -3,7 +3,7 @@ import * as types from '../templates';
export const templates = new Map<string, ISchema>(); export const templates = new Map<string, ISchema>();
const collectionTemplates: any = {}; export const collectionTemplates: any = {};
export function registerTemplate(key: string, schema: any) { export function registerTemplate(key: string, schema: any) {
collectionTemplates[key] = schema; collectionTemplates[key] = schema;