Issue #1759Opened January 29, 2019by tristanMatthias32 reactions

[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)

RottohawkinsFebruary 28, 201916 reactions

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.

warentApril 23, 20209 reactions

Would love to see TS declarations as well. TypeScript is becoming fairly standard / essential for production codebases

SharsieFebruary 6, 20197 reactions

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.