Keep function prototype methods (#434)
This commit is contained in:
parent
d798222a5a
commit
0fba91b037
2 changed files with 8 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ function createChalk(options) {
|
|||
return chalkFactory(options);
|
||||
}
|
||||
|
||||
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
||||
|
||||
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
||||
styles[styleName] = {
|
||||
get() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue