You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

reactjs-editor

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactjs-editor - npm Package Compare versions

Comparing version

to
6.6.4

2

package.json
{
"name": "reactjs-editor",
"version": "6.6.3",
"version": "6.6.4",
"description": "A simple react library that lets you highlight text, make text bold, and add comment on any text as a sticky notes",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -66,26 +66,15 @@ <h1 align="center" >

1. Go to your project
$ cd <your typescript project root>
1. Go to your project root
2. Create a new [FILE_NAME].d.ts file
$ touch reacteditor.d.ts
3. Make change to that file by adding the line below
$ nano reacteditor.d.ts
3. Add this line below in the file 📝📝
## Add this line below and save 📝📝
declare module 'reactjs-editor'; //add this line and save
4. Save that file
----------------------------- SECOND STEP: -------------------------------
1. Now open tsconfig.json file, you can find it in root of react typescript project 🏃🏃🏃
2. Make change to tsconfig.json file by including path to [FILENAME].d.ts file
$ nano tsconfig.json
1. Now open tsconfig.json file and just include path ➕➕➕
## And just include path to file you created above ➕➕➕
"include": [

@@ -104,3 +93,3 @@ "src",

##### 👩🏿‍🔧👩🏿‍🔧 After this configuration setup, typescript won't show type error
#### 👩🏿‍🔧👩🏿‍🔧 After this configuration setup, typescript won't show type error

@@ -107,0 +96,0 @@ ---