-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added suman #19817
added suman #19817
Conversation
types/suman/index.d.ts Checklist
types/suman/suman-tests.d.ts Checklist
|
Ok, so what does this mean: Error: Directory /home/travis/build/DefinitelyTyped/DefinitelyTyped/types/suman has unused file suman-tests.d.ts
at /home/travis/build/DefinitelyTyped/DefinitelyTyped/node_modules/types-publisher/src/lib/definition-parser.ts:365:11
at Generator.next (<anonymous>)
at fulfilled (/home/travis/build/DefinitelyTyped/DefinitelyTyped/node_modules/types-publisher/bin/lib/definition-parser.js:4:58)
at <anonymous> the test file is basically empty, because I don't really need tests for my typings. |
@ORESoftware Please fix the failures indicated in the Travis CI log. |
@ORESoftware, please address the lint failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I don't know why "declaration:false" is not good enough, I need to remove that entire line? Seems unnecessary?
@@ -0,0 +1,47 @@ | |||
// Type definitions for suman 1.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't look like you changed anything about the template besides adding the package name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will do anything to get this to work, frankly I am lost, need help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like suman provides its own typings in lib/index.d.ts
. You shouldn't need to add these to DefinitelyTyped when they are already bundled with the package.
types/suman/suman-tests.ts
Outdated
@@ -0,0 +1,3 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will need tests to ensure that code like https://github.com/sumanjs/suman#simple-example works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just a dummy PR, so that I know what to expect. For example, by submitting this PR, I have learned that I cannot use I
as the first character of an interface name... so this is an IMPORTANT QUESTION: Can I really not name any interface starting with an I
? As in interface IFooBar {}
... that is a really restrictive and unexpected limitation that forces me to refactor a lot of code :(
@ORESoftware Please fix the failures indicated in the Travis CI log. |
will do thx |
@RyanCavanaugh @andy-ms I finally got the build to pass with TravisCI. I am really loving the tslint tool, it's a great way to create consistent projects in the I am having trouble getting tslint to work locally, if you can answer this, that would make my day better: |
@andy-ms - Thanks for your review of this PR! Can you please look at the new code and update your review status if appropriate? |
This PR has been open and unchanged 5 days without signoff or complaint. This will be merged by a maintainer soon if there are no objections. |
SGTM thanks - I will make note of this issue history to make things smoother next time. |
Closing as |
@andy-ms, suman does NOT provide all its own types, not even close. This project, suman-types provides the types that are not included in suman itself. I essentially want to publish a git subtree of suman-types to I use the suman-types project when developing locally. I suppose I could abandon the |
Why not make a pull request to |
@andy-ms the |
But it seems like I should bypass |
Yes, DefinitelyTyped is just for packages that didn't come bundled with their own types -- if this is your own project you should include types yourself. |
yeah np, it's a little confusing, but like I said I can include |
Please fill in this template.
npm run lint package-name
(ortsc
if notslint.json
is present).Select one of these and delete the others:
If adding a new definition: