Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): missing types for bright apis #34

Merged
merged 1 commit into from Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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