Files
shields/badge-maker/index.d.ts
Xianming Zhong d0f3f2251f add type definitions to badge-maker package (#5126)
* add types for badge-maker
* update package.json and readme with tsd tests

Co-authored-by: chris48s <chris48s@users.noreply.github.com>
2020-06-02 20:30:25 +01:00

12 lines
283 B
TypeScript

interface Format {
label?: string
message: string
labelColor?: string
color?: string
style?: 'plastic' | 'flat' | 'flat-square' | 'for-the-badge' | 'social'
}
export declare class ValidationError extends Error {}
export declare function makeBadge(format: Format): string