meilisearch-admin/app/utils/json-schema.js
2022-10-22 17:56:53 +03:00

21 lines
276 B
JavaScript

class Property {
constructor(type) {
if (type) {
this.type = type;
}
return this;
}
items(type) {
this.items = new Property(type);
return this;
}
}
export const type = (type) => {
return new Property(type);
};
export default { type };