From 553c46871a3a16d5682213b044a0ea9fec225a3f Mon Sep 17 00:00:00 2001 From: LitoMore Date: Mon, 10 Oct 2022 14:54:51 +0800 Subject: [PATCH] Sync --- source/vendor/ansi-styles/index.d.ts | 3 +++ source/vendor/ansi-styles/index.js | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/vendor/ansi-styles/index.d.ts b/source/vendor/ansi-styles/index.d.ts index d4aee1e..58f133a 100644 --- a/source/vendor/ansi-styles/index.d.ts +++ b/source/vendor/ansi-styles/index.d.ts @@ -187,18 +187,21 @@ export type ModifierName = keyof Modifier; /** Basic foreground color names. + [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support) */ export type ForegroundColorName = keyof ForegroundColor; /** Basic background color names. + [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support) */ export type BackgroundColorName = keyof BackgroundColor; /** Basic color names. The combination of foreground and background color names. + [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support) */ export type ColorName = ForegroundColorName | BackgroundColorName; diff --git a/source/vendor/ansi-styles/index.js b/source/vendor/ansi-styles/index.js index 1b253de..bd1010c 100644 --- a/source/vendor/ansi-styles/index.js +++ b/source/vendor/ansi-styles/index.js @@ -214,9 +214,10 @@ function assembleStyles() { } const ansiStyles = assembleStyles(); + +export default ansiStyles; + export const modifierNames = Object.keys(styles.modifier); export const foregroundColorNames = Object.keys(styles.color); export const backgroundColorNames = Object.keys(styles.bgColor); export const colorNames = [...foregroundColorNames, ...backgroundColorNames]; - -export default ansiStyles;