node-vault icon indicating copy to clipboard operation
node-vault copied to clipboard

Add Proper types

Open sidharthv96 opened this issue 5 years ago • 6 comments

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

sidharthv96 avatar Jul 23 '20 09:07 sidharthv96

Codecov Report

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

Impacted file tree graph

@@            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.

codecov[bot] avatar Jul 23 '20 12:07 codecov[bot]

@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.

kr1sp1n avatar Aug 03 '20 17:08 kr1sp1n

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!

sidharthv96 avatar Aug 04 '20 04:08 sidharthv96

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

jamieweavis avatar Dec 01 '20 12:12 jamieweavis

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

aviadhahami avatar Nov 10 '22 17:11 aviadhahami

@sidharthv96 another ping ❤️

aviadhahami avatar May 11 '23 15:05 aviadhahami