Giter VIP home page Giter VIP logo

io-ts-validate-type's Introduction

io-ts-validate-type

A helper function for the io-ts package that validates a runtime object matches an io-ts runtimeValidator.

Contributing

To get started, clone the repo and run npm i.

This is small enough that I didn't write any tests.

io-ts-validate-type's People

Contributors

dependabot[bot] avatar jaredallen1 avatar theaznkid9 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

io-ts-validate-type's Issues

Fix the types

Notes

  • Once this issue is addressed, be sure to update the repository description.

image

What

There is something very off with the types.

I have the index.ts file copied locally in the ctm_connector repo and this works:

getCall.ts
image

but when I clone this repo, npm i, npm run compile, and then follow the testing steps to import the local files in the CTM _connector repo, I get this:

Screen Shot 2020-03-09 at 3 52 27 PM

Which looks right, until I try to use validateTypes or Vt:

image

image

Somehow, when it's used (but not imported), the local file is working with the type system, but the imported package is not.

How

?

Package does not create a .d.ts file in dist

We get the following warning when trying to use this package

Could not find a declaration file for module '@roi-revolution/io-ts-validate-types'. '...node_modules/@roi-revolution/io-ts-validate-types/dist/index.js' implicitly has an 'any' type.
Try npm install @types/roi-revolution__io-ts-validate-types if it exists or add a new declaration (.d.ts) file containing `declare module '@roi-revolution/io-ts-validate-types'

There is probably something wrong with the tsconfig or package.json that doesn't let typescript know to generate the declaration file.

Add a license?

package.json says UNLICENSED. It'd be great to be able to use this with a license like ISC!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.