meilisearch-admin/app/utils/json-schema.js
2022-10-22 15:48:19 +03:00

19 lines
250 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);
};