lua-http
lua-http copied to clipboard
Add typedlua definitions
Can do for dependency-less modules e.g. hsts.
Can do rest once typedlua allows require in .tld files. ping @andremm
Can do for dependency-less modules e.g. hsts.
Can do rest once typedlua allows require in .tld files. ping @andremm
OK. I will take a look into this.
@andremm ping?
Sorry for the delay. I just added basic support for require in .tld files.
Thanks @andremm! That has helped quite a bit to unblock this issue. I've just committed .tld files for many lua-http modules.
I wish typedlua tooling was more accessible;
- I'm not seeing e.g. any editor integrations with sublime text available
- to lint a .tld file I seem to have to write out a file containing
require "foo"and run that throughtlc - types are global which makes them difficult to compose (created https://github.com/andremm/typedlua/issues/118)
- if you're using a dependency without .tld files then you have to just use
anyinstead. Perhaps you could add some sort of "incomplete" interfaces?