FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add Proper types by sidharthv96 · Pull Request #165 · nodevault/node-vault · GitHub

Add Proper types - #165

Open
sidharthv96 wants to merge 4 commits into
nodevault:masterfrom
sidharthv96:proper-types
Open

Add Proper types#165
sidharthv96 wants to merge 4 commits into
nodevault:masterfrom
sidharthv96:proper-types

Conversation

Copy link
Copy Markdown
Contributor

These have been generated from the json schemas and added to index.d.ts manually.

codecov Bot commented Jul 23, 2020

Copy link
Copy Markdown

Codecov Report

Merging #165 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #165   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          146       146           
  Branches        37        37           
=========================================
  Hits           146       146           

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 496657b...b21b748. Read the comment docs.

Comment thread index.d.ts
Comment on lines +31 to +33
response: {
statusCode: number,
body: any

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Handl vault response is using a structure that is similar to the one in ApiResponseError, Do we need a type for this as well?

kr1sp1n commented Aug 3, 2020

Copy link
Copy Markdown
Collaborator

@sidharthv96 Thanks for your PR 🙏 At the moment I do not care so much about types, so I will review your changes a little bit later. Furthermore what about all those new dev dependencies? Could you please explain why you added them? Thanks.

Copy link
Copy Markdown
Contributor Author

Hi @kr1sp1n , I've added only a single dependency json-schema-to-typescript which converts the json schemas that you have to typescript classes. The diff you see in the yarn.lock files are automatic updates by yarn itself, which can be ignored.

Types are extremely important to our use case and if they are added in the main library, it will be a huge help for us.
As all the interfaces are generated automatically from the schema and are backward compatible with the existing Options type, it'll be easy for review.

You can also run node scripts/gen-types.js to verify the correctness of types.

Thanks for making node-vault!

jamieweavis commented Dec 1, 2020
edited
Loading

Copy link
Copy Markdown

Is there any update on this @kr1sp1n? We'd also really appreciate these missing types being added and released!

MichaelSp added a commit to vaultaire/vaultaire that referenced this pull request Apr 24, 2022

Copy link
Copy Markdown
Collaborator

Hey @sidharthv96 -> do you mind resolving the conflicts? <3

Copy link
Copy Markdown
Collaborator

@sidharthv96 another ping ❤️

aviadhahami left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

need PR fixes

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

5 participants


Back | FazBrowse Home | New Git URL