bun-types 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/overrides.d.ts +64 -0
  2. package/package.json +1 -1
package/overrides.d.ts CHANGED
@@ -72,3 +72,67 @@ declare module "tls" {
72
72
  secureConnectListener?: () => void,
73
73
  ): TLSSocket;
74
74
  }
75
+
76
+ declare module "util" {
77
+ // https://nodejs.org/docs/latest/api/util.html#foreground-colors
78
+ type ForegroundColors =
79
+ | "black"
80
+ | "blackBright"
81
+ | "blue"
82
+ | "blueBright"
83
+ | "cyan"
84
+ | "cyanBright"
85
+ | "gray"
86
+ | "green"
87
+ | "greenBright"
88
+ | "grey"
89
+ | "magenta"
90
+ | "magentaBright"
91
+ | "red"
92
+ | "redBright"
93
+ | "white"
94
+ | "whiteBright"
95
+ | "yellow"
96
+ | "yellowBright";
97
+
98
+ // https://nodejs.org/docs/latest/api/util.html#background-colors
99
+ type BackgroundColors =
100
+ | "bgBlack"
101
+ | "bgBlackBright"
102
+ | "bgBlue"
103
+ | "bgBlueBright"
104
+ | "bgCyan"
105
+ | "bgCyanBright"
106
+ | "bgGray"
107
+ | "bgGreen"
108
+ | "bgGreenBright"
109
+ | "bgGrey"
110
+ | "bgMagenta"
111
+ | "bgMagentaBright"
112
+ | "bgRed"
113
+ | "bgRedBright"
114
+ | "bgWhite"
115
+ | "bgWhiteBright"
116
+ | "bgYellow"
117
+ | "bgYellowBright";
118
+
119
+ // https://nodejs.org/docs/latest/api/util.html#modifiers
120
+ type Modifiers =
121
+ | "blink"
122
+ | "bold"
123
+ | "dim"
124
+ | "doubleunderline"
125
+ | "framed"
126
+ | "hidden"
127
+ | "inverse"
128
+ | "italic"
129
+ | "overlined"
130
+ | "reset"
131
+ | "strikethrough"
132
+ | "underline";
133
+
134
+ function styleText(
135
+ format: ForegroundColors | BackgroundColors | Modifiers,
136
+ text: string,
137
+ ): string;
138
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.1",
2
+ "version": "1.1.2",
3
3
  "name": "bun-types",
4
4
  "license": "MIT",
5
5
  "main": "",