mindee
Version:
Mindee Client Library for Node.js
17 lines (16 loc) • 453 B
JavaScript
/**
* Base class for all V2 product definitions.
*
* Child classes are passed to the Client when making requests.
*/
export class BaseProduct {
static get parametersClass() {
throw new Error("Must define static parameters property");
}
static get responseClass() {
throw new Error("Must define static response property");
}
static get slug() {
throw new Error("Must define static slug property");
}
}