You are viewing a plain text version of this content. The canonical link for it is here.
Posted to devnull@infra.apache.org by "BorntraegerMarc (GitHub)" <gi...@apache.org> on 2018/08/23 13:51:15 UTC
[GitHub] [cordova-plugin-file] BorntraegerMarc opened issue #247:
Export typings?
At the moment none of the types in the `index.d.ts` are exported. Thus nobody can use them. They should be `exported`
[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/247 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [cordova-plugin-file] janpio commented on issue #247: Export
typings
Posted by "janpio (GitHub)" <gi...@apache.org>.
Feel free to create a Pull Request to fix this. We would really appreciate it.
[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/247 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [cordova-plugin-file] BorntraegerMarc commented on issue
#247: Export typings
Posted by "BorntraegerMarc (GitHub)" <gi...@apache.org>.
@jcesarmobile added PR https://github.com/apache/cordova-plugin-file/pull/285
[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/247 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [cordova-plugin-file] jcesarmobile commented on issue #247:
Export typings
Posted by "jcesarmobile (GitHub)" <gi...@apache.org>.
I’m not a typescript expert, but you said nobody can use the types bescause they are not exported. I told you a way you can use them. As I said, I’m no expert and I don’t know if it’s a good practice or not, but it’s a viable solution.
If you don’t like to use the triple slash directive, as janpio said, you can send a PR with the exports.
[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/247 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [cordova-plugin-file] jcesarmobile commented on issue #247:
Export typings
Posted by "jcesarmobile (GitHub)" <gi...@apache.org>.
The export is not really needed, you can use the plugin using triple slash directive like this
`/// <reference types="cordova-plugin-file" />`
[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/247 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [cordova-plugin-file] BorntraegerMarc commented on issue
#247: Export typings
Posted by "BorntraegerMarc (GitHub)" <gi...@apache.org>.
@jcesarmobile I think that is not a viable solution since (as far as I know) developers _using_ a typescript definition shouldn't need to add a reference in their TS files. They should be able to import them normally.
The `reference` is specifically for publishing dependencies in a own `@types/` library.
At least this is the best practice I've come around...
[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/247 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [cordova-plugin-file] jcesarmobile closed issue #247: Export
typings
Posted by "jcesarmobile (GitHub)" <gi...@apache.org>.
[ issue closed by jcesarmobile ]
[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/247 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [cordova-plugin-file] BorntraegerMarc commented on issue
#247: Export typings
Posted by "BorntraegerMarc (GitHub)" <gi...@apache.org>.
Hey @janpio
I didn't provide a PR because it seems that nobody will merge it anyway based on the open PR's of this repository :/
[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/247 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [cordova-plugin-file] janpio commented on issue #247: Export
typings
Posted by "janpio (GitHub)" <gi...@apache.org>.
There are 30 open and 208 closed PRs. We are actively working on reducing the number of open PRs, but as you can assume that's not so simple with PRs going back to 2014.
[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/247 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org