mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 02:08:16 +08:00
30 lines
587 B
JavaScript
30 lines
587 B
JavaScript
/**
|
|
* @import {Schema as SchemaType, Space} from 'property-information'
|
|
*/
|
|
|
|
/** @type {SchemaType} */
|
|
export class Schema {
|
|
/**
|
|
* @param {SchemaType['property']} property
|
|
* Property.
|
|
* @param {SchemaType['normal']} normal
|
|
* Normal.
|
|
* @param {Space | undefined} [space]
|
|
* Space.
|
|
* @returns
|
|
* Schema.
|
|
*/
|
|
constructor(property, normal, space) {
|
|
this.normal = normal
|
|
this.property = property
|
|
|
|
if (space) {
|
|
this.space = space
|
|
}
|
|
}
|
|
}
|
|
|
|
Schema.prototype.normal = {}
|
|
Schema.prototype.property = {}
|
|
Schema.prototype.space = undefined
|