UNPKG

spotify-now

Version:
15 lines 645 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleColor = void 0; const tslib_1 = require("tslib"); const spotifyApi_1 = require("../spotifyApi"); const getColor_1 = require("./getColor"); function handleColor(led) { return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { const color = yield (0, spotifyApi_1.refreshTokenWhenExpire)(getColor_1.getColor); // the type definition on this method is wrong. (should accept type of number[]) led.color(color || "000000"); }); } exports.handleColor = handleColor; //# sourceMappingURL=handleColor.js.map