fix: type annotation

pull/313/head
amio 2019-10-05 10:46:39 +08:00
rodzic 450e08b3ce
commit 2a32b967a1
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -25,7 +25,7 @@ export default function (req, res, options: ServeBadgeOptions) {
subject: typeof label !== 'undefined' ? label : subject,
status: transformStatus(status, { list }),
color: query.color || color,
style: query.style || process.env.BADGE_STYLE,
style: (query.style || process.env.BADGE_STYLE) as 'flat' || 'classic',
icon: _icon.src,
iconWidth: parseInt(iconWidth || _icon.width || '13', 10),
scale: parseInt(scale || '1', 10),