reactjs-editor
Advanced tools
Comparing version
{ | ||
"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 @@ --- |
56831
-0.65%260
-4.06%