meilisearch-admin/app/utils/json-schema.js

22 lines
276 B
JavaScript
Raw Permalink Normal View History

2022-10-22 12:48:19 +00:00
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);
};
2022-10-22 14:56:53 +00:00
export default { type };