@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
14 lines (13 loc) • 321 B
JavaScript
import { JsonEntitiesContainer } from "../../domain/JsonEntityStore.js";
/**
* Declare a new JsonEntityStore class for a specific decorator type.
*
* @ignore
* @param type
* @decorator
*/
export function JsonEntityComponent(type) {
return (target) => {
JsonEntitiesContainer.set(type, target);
};
}