Type Hints for any code in Retool!

I am not sure if this is widely known or not, but I am excited by this discovery.

You can type your own code and get hints in the editor. You just need to have a proper jsdoc on your function with @param and @returns

The Retool editor happily parses these and offers them back as hints!

5 Likes

Great find! Thanks for sharing this

Wow this is a pleasant surprise. Thanks for sharing!

I also found, that if the editor is complaining about something not existing

You can just declare it as a global with a comment:

image

All better, no more yellow squiggle :slight_smile:

1 Like

This is fantastic! Thanks for sharing

Perhaps we can use AI to generate the Jsdocs in retool. Because I’m lazy.

Great find :smiling_face: I’m going to try it out.

1 Like