diff --git a/source/index.d.ts b/source/index.d.ts index f514c19..6c99db6 100644 --- a/source/index.d.ts +++ b/source/index.d.ts @@ -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. diff --git a/source/index.js b/source/index.js index 86a86e6..7889031 100644 --- a/source/index.js +++ b/source/index.js @@ -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, diff --git a/source/index.test-d.ts b/source/index.test-d.ts index 67faf82..e729675 100644 --- a/source/index.test-d.ts +++ b/source/index.test-d.ts @@ -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 -