Better api stubs

currently, the API stubs ($PLAYDATE_SDK_PATH/CoreLibs/__stubs.lua) do not have LuaCATS annotations, meaning i can't see type annotations, docs, parameters, and whatnot within my editor (nvim). having LuaCATS would be helpful as it would allow devs to check the Playdate docs without needing to leave their editor.

additionally, the stubs don't define playdate, causing an annoying number of Undefined global `playdate` errors, which make actual errors hard to find.

i've been working on adding them myself, but obviously adding annotations to around ~850 functions is quite the endeavor :3

1 Like

@notpeter has just the thing for you :playdate_proud:

3 Likes

Might still be niceto make this official and ship it with the sdk :slight_smile:

2 Likes