kopia lustrzana https://github.com/badgen/badgen
feat: export typescript types (#77)
- export type StyleOption - export type ColorPreset - export type BadgenOptionsfix-badge-width
rodzic
fdfe99c051
commit
665dc507ee
|
@ -2,10 +2,10 @@ export { Verdana110 as calcWidth } from './calc-text-width'
|
||||||
import { Verdana110 as calcWidth } from './calc-text-width'
|
import { Verdana110 as calcWidth } from './calc-text-width'
|
||||||
import colorPresets from './color-presets'
|
import colorPresets from './color-presets'
|
||||||
|
|
||||||
type StyleOption = 'flat' | 'classic'
|
export type StyleOption = 'flat' | 'classic'
|
||||||
type ColorPreset = keyof typeof colorPresets
|
export type ColorPreset = keyof typeof colorPresets
|
||||||
|
|
||||||
interface BadgenOptions {
|
export interface BadgenOptions {
|
||||||
status: string;
|
status: string;
|
||||||
subject?: string;
|
subject?: string;
|
||||||
color?: ColorPreset;
|
color?: ColorPreset;
|
||||||
|
|
Ładowanie…
Reference in New Issue