WendellAdriel / jodit-vue

Vue wrapper for Jodit Editor
MIT License
76 stars 19 forks source link

Typescript typings missing #5

Open Dalecarlia opened 5 years ago

Dalecarlia commented 5 years ago

For all who uses vue with typescript it would be great if this included (or if there was a stand alone) typings file. Otherwise we get the error: ould not find a declaration file for module 'jodit-vue'. '/home/user/projects/project_namenode_modules/jodit-vue/dist/jodit-vue.umd.js' implicitly has an 'any' type. Try npm install @types/jodit-vue if it exists or add a new declaration (.d.ts) file contai ning declare module 'jodit-vue'; Thanks for an otherwise great package!

WendellAdriel commented 5 years ago

Hello, @Freece. Thanks for the tip. I'll add the .d.ts file today still and I'll release a new version. Do I need just this declare module 'jodit-vue' in this file?

Dalecarlia commented 5 years ago

I am not exactly sure, I'm afraid. As long as the typings file is present somehow it should work I believe. I am not sure how others add via @types/package-name

WendellAdriel commented 5 years ago

@Freece I'll read about it and try to check what I can do.

WendellAdriel commented 4 years ago

@Freece can you show me a codesandbox or github project that I can see the error you're getting so I can test some solutions here?

Dalecarlia commented 4 years ago

@WendellAdriel Sorry, I don't have that code anymore. But in essence it was that when I tried using this package in my code, I didn't have any typings for it so I had to resort to using the any type which defeats the purpose of typescript. I am sorry that I can't be of more help!

WendellAdriel commented 4 years ago

No problems @Freece I'll try to check this ou!!!

HoehensteigerGames commented 4 years ago

hi, is the typescript part of the jodit-vue ready (d.ts)? I also want to use this wrapper. I tryed the npm i @types/jodit-vue but i got some errors.

Thank you chriss

WendellAdriel commented 4 years ago

Hello, @HoehensteigerGames. It's not finished, I don't have much experience with Typescript and I've been busy with other projects. If you want to, you can help us out!

Rhejie commented 5 months ago

@WendellAdriel I hope you are doing well What's the status of this issue? this package is beneficial but I have a problem with vue typescript.