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: generate type definitions #30

Merged
merged 6 commits into from
Apr 10, 2021
Merged

Feat: generate type definitions #30

merged 6 commits into from
Apr 10, 2021

Conversation

runeh
Copy link
Collaborator

@runeh runeh commented Apr 9, 2021

Adds support for type definitions as well as runtypes.

Fixes #28

This is a work in progress. It currently generates types and runtypes with the same names. This is allowed I think, but probably not what most people want.

More discussion on #28

@lgtm-com
Copy link

lgtm-com bot commented Apr 9, 2021

This pull request introduces 1 alert when merging 4176267 into 6aed648 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@runeh runeh marked this pull request as ready for review April 9, 2021 21:14
@runeh runeh requested a review from simenandre April 9, 2021 21:14
src/main.ts Outdated Show resolved Hide resolved
Co-authored-by: Mikalai Ziuz <haradzienski@gmail.com>
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (develop@6aed648). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop      #30   +/-   ##
==========================================
  Coverage           ?   93.39%           
==========================================
  Files              ?        2           
  Lines              ?      106           
  Branches           ?       12           
==========================================
  Hits               ?       99           
  Misses             ?        7           
  Partials           ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6aed648...ce0e79a. Read the comment docs.

@runeh runeh merged commit bbad2d3 into develop Apr 10, 2021
@runeh runeh deleted the support-emitting-types branch April 10, 2021 12:38
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.0.0-alpha.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Enhancement: option to generate static type based on the runtype
4 participants