Sync
This commit is contained in:
parent
79e9185fd6
commit
553c46871a
2 changed files with 6 additions and 2 deletions
3
source/vendor/ansi-styles/index.d.ts
vendored
3
source/vendor/ansi-styles/index.d.ts
vendored
|
|
@ -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;
|
||||
|
|
|
|||
5
source/vendor/ansi-styles/index.js
vendored
5
source/vendor/ansi-styles/index.js
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue