Roblox / roact

A view management library for Roblox Lua similar to React
https://roblox.github.io/roact
Apache License 2.0
558 stars 143 forks source link

Add types to fix autocomplete. #368

Open howmanysmall opened 2 years ago

howmanysmall commented 2 years ago

Add types to Roact to allow autocomplete to work. Without it, you have to either make a vague shorthand like local e = Roact.createElement or type out Roact.createElement every time you want to use it. This fixes this problem.

Checklist before submitting:

coveralls commented 1 year ago

Coverage Status

Coverage increased (+0.004%) to 94.86% when pulling 30ddc86c87da9badf42e85396dc49bd8808d48b8 on howmanysmall:master into 82b805a3ece0beb7b5a8628410ae8e0b1e2c282e on Roblox:master.

github-actions[bot] commented 1 year ago

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.