mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
395 B
TypeScript
25 lines
395 B
TypeScript
import badgen from 'badgen';
|
|
|
|
// $ExpectType string
|
|
badgen({
|
|
subject: 'SUBJECT',
|
|
status: 'STATUS'
|
|
});
|
|
|
|
// $ExpectType string
|
|
badgen({
|
|
subject: 'SUBJECT',
|
|
status: 'STATUS',
|
|
color: 'green'
|
|
});
|
|
|
|
// $ExpectType string
|
|
badgen({
|
|
subject: 'SUBJECT',
|
|
status: 'STATUS',
|
|
color: '#FF0000',
|
|
style: 'flat',
|
|
icon: 'data:image/svg+xml;base64,...',
|
|
iconWidth: 20
|
|
});
|