Coder Social home page Coder Social logo

microsoft / definitelytyped-header-parser Goto Github PK

View Code? Open in Web Editor NEW
7.0 15.0 15.0 131 KB

ℹ️ This repo has moved:

Home Page: https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/header-parser

License: MIT License

TypeScript 100.00%

definitelytyped-header-parser's People

Contributors

ailrun avatar andrewbranch avatar danielrosenwasser avatar dependabot[bot] avatar duduluu avatar jamesmcnamara avatar microsoftopensource avatar msftgits avatar sandersn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

definitelytyped-header-parser's Issues

Error: Could not parse version: line is '// TypeScript Version: 2.7'

I want to use options

// TypeScript Version: 2.7

because of

"esModuleInterop": true

in tsconfig.json but npm run lint shows:

Error: Could not parse version: line is '// TypeScript Version: 2.7'
    at Object.parseTypeScriptVersionLine (/Users/dexter/src/js/DefinitelyTyped/node_modules/definitelytyped-header-parser/index.js:177:15)
    at getTypeScriptVersion (/Users/dexter/src/js/DefinitelyTyped/node_modules/dtslint/bin/index.js:125:44)
    at /Users/dexter/src/js/DefinitelyTyped/node_modules/dtslint/bin/index.js:93:28
    at Generator.next (<anonymous>)
    at fulfilled (/Users/dexter/src/js/DefinitelyTyped/node_modules/dtslint/bin/index.js:5:58)
    at <anonymous>

Why patch version not allowed?

I don't understand why patch version is not allowed.

As far as I can tell, it was like that

return fail("patch version not allowed");
from the start (87d8817) as written by @andy-ms

I understand that it probably won't change, but I would like to know why this decision was made? I think that I'm missing a point...

The reason why I'm asking is because we are working on google-api-typings-generator and our users could benefit greatly if patch versions could be allowed.
Basically, we generate typings for google APIs, they have major and minor version, but they also have revisions within the same x.x versions. So, we were thinking about using patch versions to indicate typings for new revisions.

Any thoughts or explanation regarding this matter would be greatly appreciated!

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.