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

feat: improve function typing #2

Merged
merged 17 commits into from
Mar 28, 2021
Merged

feat: improve function typing #2

merged 17 commits into from
Mar 28, 2021

Conversation

danielroe
Copy link
Member

No description provided.

* fix function return types
* respect ts declarations
* infer types from default values
* mark args with default values optional
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 25, 2021

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 37bd95b
Status: ✅  Deploy successful!
Preview URL: https://3995d59c.untyped.pages.dev

View logs

@pi0 pi0 changed the title feat: function types feat: infer return type and function defaults Mar 26, 2021
src/loader/babel.ts Outdated Show resolved Hide resolved
test/transform.test.ts Outdated Show resolved Hide resolved
src/loader/babel.ts Outdated Show resolved Hide resolved
@pi0 pi0 changed the title feat: infer return type and function defaults feat: function type infer improvements Mar 26, 2021
@pi0 pi0 changed the title feat: function type infer improvements feat: improve function typing Mar 26, 2021
test/types.test.ts Outdated Show resolved Hide resolved
@pi0 pi0 merged commit 76cb654 into main Mar 28, 2021
@pi0 pi0 deleted the function-types branch March 28, 2021 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants