mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-28 18:40:09 +00:00
Bright colors for typescript definitions (#262)
* bright colors in safe.d.ts * bright colors in index.d.ts * added self as an author * Update index.d.ts
This commit is contained in:
parent
baa0e1c7dc
commit
a656b8022e
52
index.d.ts
vendored
52
index.d.ts
vendored
@ -1,6 +1,6 @@
|
|||||||
// Type definitions for Colors.js 1.2
|
// Type definitions for Colors.js 1.4
|
||||||
// Project: https://github.com/Marak/colors.js
|
// Project: https://github.com/Marak/colors.js
|
||||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke>
|
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke>, Max Sirenev <https://github.com/tggdesu>
|
||||||
// Definitions: https://github.com/Marak/colors.js
|
// Definitions: https://github.com/Marak/colors.js
|
||||||
|
|
||||||
export interface Color {
|
export interface Color {
|
||||||
@ -20,6 +20,22 @@ export interface Color {
|
|||||||
gray: Color;
|
gray: Color;
|
||||||
grey: Color;
|
grey: Color;
|
||||||
|
|
||||||
|
brightRed: Color;
|
||||||
|
brightGreen: Color;
|
||||||
|
brightYellow: Color;
|
||||||
|
brightBlue: Color;
|
||||||
|
brightMagenta: Color;
|
||||||
|
brightCyan: Color;
|
||||||
|
brightWhite: Color;
|
||||||
|
|
||||||
|
bgBrightRed: Color;
|
||||||
|
bgBrightGreen: Color;
|
||||||
|
bgBrightYellow: Color;
|
||||||
|
bgBrightBlue: Color;
|
||||||
|
bgBrightMagenta: Color;
|
||||||
|
bgBrightCyan: Color;
|
||||||
|
bgBrightWhite: Color;
|
||||||
|
|
||||||
bgBlack: Color;
|
bgBlack: Color;
|
||||||
bgRed: Color;
|
bgRed: Color;
|
||||||
bgGreen: Color;
|
bgGreen: Color;
|
||||||
@ -66,6 +82,22 @@ export const white: Color;
|
|||||||
export const gray: Color;
|
export const gray: Color;
|
||||||
export const grey: 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 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 bgBlack: Color;
|
export const bgBlack: Color;
|
||||||
export const bgRed: Color;
|
export const bgRed: Color;
|
||||||
export const bgGreen: Color;
|
export const bgGreen: Color;
|
||||||
@ -106,6 +138,22 @@ declare global {
|
|||||||
white: string;
|
white: string;
|
||||||
gray: string;
|
gray: string;
|
||||||
grey: string;
|
grey: string;
|
||||||
|
|
||||||
|
brightRed: Color;
|
||||||
|
brightGreen: Color;
|
||||||
|
brightYellow: Color;
|
||||||
|
brightBlue: Color;
|
||||||
|
brightMagenta: Color;
|
||||||
|
brightCyan: Color;
|
||||||
|
brightWhite: Color;
|
||||||
|
|
||||||
|
bgBrightRed: Color;
|
||||||
|
bgBrightGreen: Color;
|
||||||
|
bgBrightYellow: Color;
|
||||||
|
bgBrightBlue: Color;
|
||||||
|
bgBrightMagenta: Color;
|
||||||
|
bgBrightCyan: Color;
|
||||||
|
bgBrightWhite: Color;
|
||||||
|
|
||||||
bgBlack: string;
|
bgBlack: string;
|
||||||
bgRed: string;
|
bgRed: string;
|
||||||
|
|||||||
20
safe.d.ts
vendored
20
safe.d.ts
vendored
@ -1,6 +1,6 @@
|
|||||||
// Type definitions for Colors.js 1.2
|
// Type definitions for Colors.js 1.4
|
||||||
// Project: https://github.com/Marak/colors.js
|
// Project: https://github.com/Marak/colors.js
|
||||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke>
|
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke>, Max Sirenev <https://github.com/tggdesu>
|
||||||
// Definitions: https://github.com/Marak/colors.js
|
// Definitions: https://github.com/Marak/colors.js
|
||||||
|
|
||||||
export const enabled: boolean;
|
export const enabled: boolean;
|
||||||
@ -22,6 +22,22 @@ export function white(str: string): string;
|
|||||||
export function gray(str: string): string;
|
export function gray(str: string): string;
|
||||||
export function grey(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 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 bgBlack(str: string): string;
|
export function bgBlack(str: string): string;
|
||||||
export function bgRed(str: string): string;
|
export function bgRed(str: string): string;
|
||||||
export function bgGreen(str: string): string;
|
export function bgGreen(str: string): string;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user