microsoft / definitelytyped-header-parser Goto Github PK
View Code? Open in Web Editor NEWℹ️ This repo has moved:
Home Page: https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/header-parser
License: MIT License
ℹ️ This repo has moved:
Home Page: https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/header-parser
License: MIT License
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>
Can we add 3.0 to the typescript versions. This is blocking me from updating a typing on DefinitelyTyped to use the awesome new 3.0 features.
Looks like this is missing from the list?
I don't understand why patch version is not allowed.
As far as I can tell, it was like that
definitelytyped-header-parser/index.ts
Line 245 in 808e8a3
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.