-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
548a5c1
commit 475fcbf
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export type Format = (string: string) => string; | ||
|
||
export const reset: Format; | ||
export const bold: Format; | ||
export const dim: Format; | ||
export const italic: Format; | ||
export const underline: Format; | ||
export const overline: Format; | ||
export const inverse: Format; | ||
export const hidden: Format; | ||
export const strikethrough: Format; | ||
|
||
export const black: Format; | ||
export const red: Format; | ||
export const green: Format; | ||
export const yellow: Format; | ||
export const blue: Format; | ||
export const magenta: Format; | ||
export const cyan: Format; | ||
export const white: Format; | ||
export const gray: Format; | ||
|
||
export const bgBlack: Format; | ||
export const bgRed: Format; | ||
export const bgGreen: Format; | ||
export const bgYellow: Format; | ||
export const bgBlue: Format; | ||
export const bgMagenta: Format; | ||
export const bgCyan: Format; | ||
export const bgWhite: Format; | ||
export const bgGray: Format; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import {expectType} from 'tsd'; | ||
import * as colors from './index.js'; | ||
|
||
expectType<string>(colors.red('x')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters