APIDevTools / json-schema-ref-parser

Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers
https://apitools.dev/json-schema-ref-parser
MIT License
942 stars 226 forks source link

fix: Enable compilerOptions noImplicitReturns and noUnusedParameters to improve type safety #347

Closed tekener closed 4 months ago

tekener commented 4 months ago

Hi, we are using your lib inside a typescript project having the following quite common compilerOptions enabled inside out tsconfig.json.

    "noImplicitReturns": true,
    "noUnusedParameters": true

This PR enabled this settings on your project as well because the code issues hiding in your code are letting our tsc fail as well. To enable it I fixed most of the underlying code issues. I added @ts-ignore to the PluginResult interface because I was too shy to remove the not used generic parameter O.

Thank you

coveralls commented 4 months ago

Pull Request Test Coverage Report for Build 8815466799

Details


Totals Coverage Status
Change from base Build 8804657404: 0.03%
Covered Lines: 3441
Relevant Lines: 3549

💛 - Coveralls
tekener commented 3 months ago

Hi @jonluca, just kindly asking if you are creating a release for that.

github-actions[bot] commented 3 months ago

:tada: This PR is included in version 11.6.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: