imagemagick-async
Version:
An API for Image Magick commands.
34 lines (29 loc) • 878 B
JavaScript
class ObjectInterface {
constructor(properties) {
this.category = properties.category; // Matches parent folder (all lowercase)
this.type = properties.type; // if in a subfolder, assign to subfolder name. Else, assign to class name.
this.name = properties.name; // Class name
this.args = properties.args; // Object with args
}
/**
* @returns {object} Returns an object constructed from.
*/
static get Builder() {
// override
}
/**
* @returns {object} Returns an object containing parameter properties.
*/
static Parameters() {
// override
}
/**
* @returns {Array<string>} Returns a list of errors produced by invalid arguments. (Is empty if no errors were found).
*/
Errors() {
// override
}
}
//---------------------------
// EXPORTS
exports.ObjectInterface = ObjectInterface;