This commit is contained in:
LitoMore 2022-10-12 11:49:14 +08:00
parent 8011f5f507
commit 2b668aaaa6
No known key found for this signature in database
GPG key ID: B8653F9344667340
3 changed files with 5 additions and 24 deletions

26
source/index.d.ts vendored
View file

@ -242,10 +242,8 @@ export const chalkStderr: typeof chalk;
export const supportsColorStderr: typeof supportsColor;
export {
ModifierName,
ForegroundColorName,
BackgroundColorName,
ColorName,
ModifierName, ForegroundColorName, BackgroundColorName, ColorName,
modifierNames, foregroundColorNames, backgroundColorNames, colorNames,
// } from '#ansi-styles';
} from './vendor/ansi-styles/index.js';
@ -256,26 +254,6 @@ export {
// } from '#supports-color';
} from './vendor/supports-color/index.js';
/**
Basic modifier names.
*/
export const modifierNames: readonly ModifierName[];
/**
Basic foreground color names.
*/
export const foregroundColorNames: readonly ForegroundColorName[];
/**
Basic background color names.
*/
export const backgroundColorNames: readonly BackgroundColorName[];
/**
Basic color names. The combination of foreground and background color names.
*/
export const colorNames: readonly ColorName[];
/**
@deprecated Use `ModifierName` instead.

View file

@ -209,6 +209,8 @@ export {
foregroundColorNames,
backgroundColorNames,
colorNames,
// TODO: Remove these aliases in next major version
modifierNames as modifiers,
foregroundColorNames as foregroundColors,
backgroundColorNames as backgroundColors,

View file

@ -2,6 +2,7 @@ import {expectType, expectAssignable, expectError, expectDeprecated} from 'tsd';
import chalk, {
Chalk, ChalkInstance, ColorInfo, ColorSupport, ColorSupportLevel, chalkStderr, supportsColor, supportsColorStderr,
ModifierName, ForegroundColorName, BackgroundColorName, ColorName,
Modifiers,
} from './index.js';
// - supportsColor -