[Feature request]: Typescript declarations
Question
This is an amazing project! Thanks.
Would it be possible to get typings for Typescript? It would make life a lot easier for the project I am working on.
Thanks so much!
Answers (3)
This might take a little bit longer because dts-gen is not compatible with grapesjs, not even the browser version. Thats why I have to make everything by hand.
As a result I am not sure if it will be accepted in official types repository.
So far I have created the definition for configuration objects and the grapesjs editor itself. Here's the current document
The last few classes should be finished today. Testing and validating types are the biggest tasks on this. The configuration can already be tested by placing the file DefinitelyTyped/types/grapesjs/index.dts at node_modules\@types\grapesjs\index.d.ts
There are still definetly some types wrong where I have put instead of Backbone.Model an Object and instead of Backbone.Collection an Array.
Would love to see TS declarations as well. TypeScript is becoming fairly standard / essential for production codebases
If someone starts working on this, poke me please, we might be able to give a hand here and there... Would really love to have typings for this project
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3399
Convert JSON to HTML server-side
So first of all, thank you @artf for this amazing project. I have a question: Is it possible to easily convert the components-JSON to HTML...
Issue #3639
[Feature]: Improve UndoManager API
One thing i think would add great functionality is a more detailed history stack. U can get the undo stack and build a sort of history repo...
Issue #1806
[Feature]: Add category on traits
Hi and thank's for your job ! It's possible to make traits under cateogories like blocks ? If it's possible, maybe use the Category object...
Issue #1470
[Question] Possible memory leaks
Hi, I am working on a project with Angular 6 and I am investigating a memory leak after destroying the editor on _previousAttributes and po...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.