* add types for badge-maker * update package.json and readme with tsd tests Co-authored-by: chris48s <chris48s@users.noreply.github.com>
12 lines
283 B
TypeScript
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
|