You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the error is being thrown, because it cannot find a type definition?
UPDATE: 15.02.2024
I have attached the index.d.ts file to this comment.
If you want to add more type definitions, please feel free to do so. I just wanted to provide a quick, easy solution, to allow this library to work with typescript projects.
This is an absolutely fantastic library! 👏🏻
I was just wondering whether you could create a typescript definition file:
index.d.ts
I want to use this with my node project, which is written in typescript, but when I try and run it, I get:
I am importing it like:
import indent from 'indent.js';
I have also tried:
const indent = require('indent');
And then:
I think the error is being thrown, because it cannot find a type definition?
UPDATE: 15.02.2024
I have attached the index.d.ts file to this comment.
If you want to add more type definitions, please feel free to do so. I just wanted to provide a quick, easy solution, to allow this library to work with typescript projects.
Add this file to your the following folder:
And then add this to the top of your js/ts file:
index.d.zip
The text was updated successfully, but these errors were encountered: