-
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
Create type definitions for react-filepond #31362
Conversation
ab5d5b6
to
11d3d15
Compare
While running
At first glance it seems simple enough to remove the My goal is simply to avoid duplicating the |
11d3d15
to
9b836d7
Compare
@zposten Thank you for submitting this PR! Because this is a new definition, a DefinitelyTyped maintainer will be reviewing this PR in the next few days once the Travis CI build passes. In the meantime, if the build fails or a merge conflict occurs, I'll let you know. Have a nice day! |
@zposten The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
@zposten I haven't seen anything from you in a while and this PR currently has problems that prevent it from being merged. The PR will be closed tomorrow if there aren't new commits to fix the issues. |
@typescript-bot Please don't close this PR. I'm looking for assistance to resolve the one error, as described above. |
9b836d7
to
4e6eb51
Compare
@sandersn Would you be able to help me with the seemingly lose-lose error described above? |
@zposten The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
It currently reports the error: ERROR: 22:1 strict-export-declare-modifiers 'declare' keyword is redundant here. See: https://github.com/Microsoft/dtslint/blob/master/docs/strict-export-declare-modifiers.md at C:\dev\DefinitelyTyped\node_modules\dtslint\bin\index.js:158:19 at Generator.next (<anonymous>) at fulfilled (C:\dev\DefinitelyTyped\node_modules\dtslint\bin\index.js:5:58) at <anonymous> But if I remove the 'declare' keyword on line 22, I get the error A 'declare' modifier is required for a top level declaration in a .d.ts file. I want to use a class under one name in this file and another name externally, what do I do here?
4e6eb51
to
42117f4
Compare
@zposten I think tslint (or perhaps our custom rules in dtslint) was in a bad state for a day or so. I think that's why the error went away for the recent run of the build. |
@zposten Hey Zach - I'm now trying to convert my Filepond components from JSX to TSX, and running into type errors. Specifically, my
This fails because Thanks! |
Please fill in this template.
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).Select one of these and delete the others:
If adding a new definition:
.d.ts
files generated via--declaration
dts-gen --dt
, not by basing it on an existing project.tslint.json
should be present, andtsconfig.json
should havenoImplicitAny
,noImplicitThis
,strictNullChecks
, andstrictFunctionTypes
set totrue
.