feat: export typescript types (#77)

- export type StyleOption
- export type ColorPreset
- export type BadgenOptions
fix-badge-width
简静凡 2023-02-24 18:33:13 +08:00 zatwierdzone przez GitHub
rodzic fdfe99c051
commit 665dc507ee
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -2,10 +2,10 @@ export { Verdana110 as calcWidth } from './calc-text-width'
import { Verdana110 as calcWidth } from './calc-text-width'
import colorPresets from './color-presets'
type StyleOption = 'flat' | 'classic'
type ColorPreset = keyof typeof colorPresets
export type StyleOption = 'flat' | 'classic'
export type ColorPreset = keyof typeof colorPresets
interface BadgenOptions {
export interface BadgenOptions {
status: string;
subject?: string;
color?: ColorPreset;