-
Notifications
You must be signed in to change notification settings - Fork 1
Description
- npm install clolorts
- import color from 'colorts'
- console.log("Some text".yellow)
Node version - v14.16.1
package.json
{ "name": "cmd", "version": "1.0.0", "description": "", "main": "main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "run": "npm run build && node build/main.js", "start": "node ./build/main.js", "start:dev": "nodemon", "build": "rimraf ./build && tsc" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@types/node": "^16.10.1", "nodemon": "^2.0.13", "rimraf": "^3.0.2", "ts-node": "^10.2.1", "typescript": "^4.4.3" }, "dependencies": { "esm": "^3.2.25", "node-fetch": "~2.6.5" } }
node_modules/colorts/lib/string.d.ts:17:9 - error TS2717: Subsequent property declarations must have the same type. Property 'bold' must be of type '() => string', but here has type 'string'.
17 bold: string;
~~~~
node_modules/typescript/lib/lib.es2015.core.d.ts:469:5
469 bold(): string;
~~~~~~~~~~~~~~~
'bold' was also declared here.
Found 1 error.