pull/38/head
Amio 2019-01-29 21:11:39 +08:00
rodzic 5fc35ca0cc
commit e8afa73839
2 zmienionych plików z 13 dodań i 1 usunięć

Wyświetl plik

@ -13,7 +13,7 @@
"snaptests": "TAP_SNAPSHOT=1 npm test",
"pretest": "npm run lint && npm run build",
"test": "tap test/*.spec.js --reporter spec --coverage",
"build": "ncc -s -m build src/index.js ",
"build": "ncc -s -m build src/index.js && cp src/*.d.ts dist",
"prepublishOnly": "npm run build"
},
"devDependencies": {

12
src/index.d.ts vendored 100644
Wyświetl plik

@ -0,0 +1,12 @@
interface BadgenOptions {
status: string;
subject?: string;
color?: string;
style?: StyleOption;
icon?: string;
iconWidth?: 13;
}
type StyleOption = 'flat' | 'classic'
export default function badgen(options: BadgenOptions): string;