Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typedlua definitions #84

Open
daurnimator opened this issue Oct 29, 2017 · 4 comments
Open

Add typedlua definitions #84

daurnimator opened this issue Oct 29, 2017 · 4 comments

Comments

@daurnimator
Copy link
Owner

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

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

@andremm
Copy link

andremm commented Oct 30, 2017

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.

@daurnimator
Copy link
Owner Author

@andremm ping?

@andremm
Copy link

andremm commented Aug 25, 2018

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

daurnimator added a commit that referenced this issue Aug 26, 2018
@daurnimator
Copy link
Owner Author

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 Allow type names with "." character andremm/typedlua#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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants