projection-schema-registry.d.ts 439 B

12345678910111213141516171819202122
  1. import {Service} from '@e22m4u/js-service';
  2. import {ProjectionSchema} from './projection-schema.js';
  3. /**
  4. * Projection schema registry.
  5. */
  6. export declare class ProjectionSchemaRegistry extends Service {
  7. /**
  8. * Define schema.
  9. *
  10. * @param name
  11. * @param schema
  12. */
  13. defineSchema(name: string, schema: ProjectionSchema): this;
  14. /**
  15. * Get schema.
  16. *
  17. * @param name
  18. */
  19. getSchema(name: string): ProjectionSchema;
  20. }