lua-http icon indicating copy to clipboard operation
lua-http copied to clipboard

Add typedlua definitions

Open daurnimator opened this issue 8 years ago • 4 comments

Can do for dependency-less modules e.g. hsts.

Can do rest once typedlua allows require in .tld files. ping @andremm

daurnimator avatar Oct 29 '17 05:10 daurnimator

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 avatar Oct 30 '17 19:10 andremm

@andremm ping?

daurnimator avatar Aug 14 '18 04:08 daurnimator

Sorry for the delay. I just added basic support for require in .tld files.

andremm avatar Aug 25 '18 16:08 andremm

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 through tlc
  • 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 any instead. Perhaps you could add some sort of "incomplete" interfaces?

daurnimator avatar Aug 26 '18 14:08 daurnimator