Tweaks
This commit is contained in:
parent
8011f5f507
commit
2b668aaaa6
3 changed files with 5 additions and 24 deletions
26
source/index.d.ts
vendored
26
source/index.d.ts
vendored
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue