import { SchemaName } from './config' ; class Schema { storeScheme : Map < SchemaName , Object > ; constructor ( ) { this . storeScheme = new Map ( ) ; } add ( schemaId , scheme ) { if ( ! this . storeScheme . has ( schemaId ) ) { this . storeScheme . set ( schemaId , scheme ) ; return true ; } return false ; } get ( schemaId ) { return this . storeScheme . get ( schemaId ) ; } } export const schemaStore = new Schema ( ) ;