Skip to content

Commit

Permalink
fix(types): move types declaration into "real" types declaration file…
Browse files Browse the repository at this point in the history
… (.d.ts) (#82)
  • Loading branch information
Kocal authored Sep 30, 2024
1 parent 4e94689 commit 6a1eb72
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"files": [
"picocolors.*",
"types.ts"
"types.d.ts"
],
"keywords": [
"terminal",
Expand Down
52 changes: 52 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
export type Formatter = (input: string | number | null | undefined) => string

export interface Colors {
isColorSupported: boolean

reset: Formatter
bold: Formatter
dim: Formatter
italic: Formatter
underline: Formatter
inverse: Formatter
hidden: Formatter
strikethrough: Formatter

black: Formatter
red: Formatter
green: Formatter
yellow: Formatter
blue: Formatter
magenta: Formatter
cyan: Formatter
white: Formatter
gray: Formatter

bgBlack: Formatter
bgRed: Formatter
bgGreen: Formatter
bgYellow: Formatter
bgBlue: Formatter
bgMagenta: Formatter
bgCyan: Formatter
bgWhite: Formatter

blackBright: Formatter
redBright: Formatter
greenBright: Formatter
yellowBright: Formatter
blueBright: Formatter
magentaBright: Formatter
cyanBright: Formatter
whiteBright: Formatter

bgBlackBright: Formatter
bgRedBright: Formatter
bgGreenBright: Formatter
bgYellowBright: Formatter
bgBlueBright: Formatter
bgMagentaBright: Formatter
bgCyanBright: Formatter
bgWhiteBright: Formatter

}
52 changes: 0 additions & 52 deletions types.ts

This file was deleted.

0 comments on commit 6a1eb72

Please sign in to comment.