Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(types): missing types for bright apis (#34)
  • Loading branch information
Badisi committed Jul 10, 2023
1 parent 5263348 commit 6c1dd45
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
48 changes: 48 additions & 0 deletions index.d.ts
Expand Up @@ -20,6 +20,14 @@ export interface Color {
gray: Color;
grey: Color;

brightRed: Color;
brightGreen: Color;
brightYellow: Color;
brightBlue: Color;
brightMagenta: Color;
brightCyan: Color;
brightWhite: Color;

bgBlack: Color;
bgRed: Color;
bgGreen: Color;
Expand All @@ -29,6 +37,14 @@ export interface Color {
bgCyan: Color;
bgWhite: Color;

bgBrightRed: Color;
bgBrightGreen: Color;
bgBrightYellow: Color;
bgBrightBlue: Color;
bgBrightMagenta: Color;
bgBrightCyan: Color;
bgBrightWhite: Color;

reset: Color;
bold: Color;
dim: Color;
Expand Down Expand Up @@ -66,6 +82,14 @@ export const white: Color;
export const gray: Color;
export const grey: Color;

export const brightRed: Color;
export const brightGreen: Color;
export const brightYellow: Color;
export const brightBlue: Color;
export const brightMagenta: Color;
export const brightCyan: Color;
export const brightWhite: Color;

export const bgBlack: Color;
export const bgRed: Color;
export const bgGreen: Color;
Expand All @@ -75,6 +99,14 @@ export const bgMagenta: Color;
export const bgCyan: Color;
export const bgWhite: Color;

export const bgBrightRed: Color;
export const bgBrightGreen: Color;
export const bgBrightYellow: Color;
export const bgBrightBlue: Color;
export const bgBrightMagenta: Color;
export const bgBrightCyan: Color;
export const bgBrightWhite: Color;

export const reset: Color;
export const bold: Color;
export const dim: Color;
Expand Down Expand Up @@ -107,6 +139,14 @@ declare global {
gray: string;
grey: string;

brightRed: string;
brightGreen: string;
brightYellow: string;
brightBlue: string;
brightMagenta: string;
brightCyan: string;
brightWhite: string;

bgBlack: string;
bgRed: string;
bgGreen: string;
Expand All @@ -116,6 +156,14 @@ declare global {
bgCyan: string;
bgWhite: string;

bgBrightRed: string;
bgBrightGreen: string;
bgBrightYellow: string;
bgBrightBlue: string;
bgBrightMagenta: string;
bgBrightCyan: string;
bgBrightWhite: string;

reset: string;
// @ts-ignore
bold: string;
Expand Down
16 changes: 16 additions & 0 deletions safe.d.ts
Expand Up @@ -22,6 +22,14 @@ export function white(str: string): string;
export function gray(str: string): string;
export function grey(str: string): string;

export function brightRed(str: string): string;
export function brightGreen(str: string): string;
export function brightYellow(str: string): string;
export function brightBlue(str: string): string;
export function brightMagenta(str: string): string;
export function brightCyan(str: string): string;
export function brightWhite(str: string): string;

export function bgBlack(str: string): string;
export function bgRed(str: string): string;
export function bgGreen(str: string): string;
Expand All @@ -31,6 +39,14 @@ export function bgMagenta(str: string): string;
export function bgCyan(str: string): string;
export function bgWhite(str: string): string;

export function bgBrightRed(str: string): string;
export function bgBrightGreen(str: string): string;
export function bgBrightYellow(str: string): string;
export function bgBrightBlue(str: string): string;
export function bgBrightMagenta(str: string): string;
export function bgBrightCyan(str: string): string;
export function bgBrightWhite(str: string): string;

export function reset(str: string): string;
export function bold(str: string): string;
export function dim(str: string): string;
Expand Down

0 comments on commit 6c1dd45

Please sign in to comment.