schema.js 587 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * @import {Schema as SchemaType, Space} from 'property-information'
  3. */
  4. /** @type {SchemaType} */
  5. export class Schema {
  6. /**
  7. * @param {SchemaType['property']} property
  8. * Property.
  9. * @param {SchemaType['normal']} normal
  10. * Normal.
  11. * @param {Space | undefined} [space]
  12. * Space.
  13. * @returns
  14. * Schema.
  15. */
  16. constructor(property, normal, space) {
  17. this.normal = normal
  18. this.property = property
  19. if (space) {
  20. this.space = space
  21. }
  22. }
  23. }
  24. Schema.prototype.normal = {}
  25. Schema.prototype.property = {}
  26. Schema.prototype.space = undefined