@1amageek/passkit
Version:
passkit.ts is Passkit generator
17 lines • 626 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/// Assets manages images. You can specify the URL and Function for the property.
/// If you set the URL, the data will be acquired automatically internally.
/// If you specify a Function, make sure to return Promise<Buffer>.
class Assets {
validate() {
const requireImages = ['logo', 'icon', 'logo2x', 'icon2x'];
for (const key of requireImages) {
if (!this[key]) {
throw Error(`Missing image ${key}.png`);
}
}
}
}
exports.default = Assets;
//# sourceMappingURL=assets.js.map