-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Usage in TypeScript - Angular 2 based projects #1688
Comments
Related to #1652? |
Yes, it's related to #1652 A good example to that is angular2-highcharts library, which is just a handful of typescript wrappers for the original commonJS Highcharts library and works perfectly with Angular 2. If you look at their I know this probably is a low priority task for you. I can help to get this done, but I have very little knowledge about fine-uploader library |
I'm afraid I'm not the best person to implement this feature for a few reasons:
That said, I do see how this would be a very valuable update to Fine Uploader. I'm willing to provide advice and answer questions at any time if you are willing to participate in coding this up. I see creating TS definition for the API to be a fair amount of work. See the API nav menu at http://docs.fineuploader.com - I assume all events, methods, and options will need to be covered in the TS definitions. As for the wrapper, as you mentioned, something similar to what I created for React Fine Uploader sounds like the right approach. More specifically, the "wrapper classes" I created are probably a good high-level model. |
Sure I'll definitely give it a shot as me and my team definitely want to use this library instead of any other. How do I contact you for advice, questions and overall progress? |
Since this is a public project, I'd like to maintain as much transparency as possible. So feel free to post any questions at all in this issue. If that isn't working out for some reason, we can regroup and discuss another approach. |
This repo contains the first draft that I've prepared today which includes declarations for CORE and UI methods. |
cool. i'll take a closer look this weekend. or perhaps i should wait until you are "done" with this definitions file, then I can add comments. This might work better as a pull request to Fine Uploader. You can commit to the branch associated with the PR as you complete this, and I can comment on commits much easier. |
Ok I can do that. I'm not sure how to create a pull request and push my changes |
First step is to fork the project. Then you can submit a pull request using GitHub after you push your first commit to your branch. Subsequent commits to your branch will be part of this pull request. It will be much easier to discuss changes and plans in that context. |
Closing this issue since we have PR #1719 |
Think #1652 can be closed too... |
Type of issue
feature request
Uploader type
All
Feature request details
Just started using this library and it is a very solid one with many great features.
I'm trying to integrate with TypeScript in Angular 2 project.
I've read the documentation about how to import as ES6 modules.
the typescript compiler complaints if I use
import qq from 'fine-uploader'
because there isn't any index file in the root of the library which would export anything as a typical Typescript settings.if I do
let qq = require('fine-uploader')
, things work fine, but I need to useimport
rather thanrequire
to be able to generate rollup bundle later.Detailed description of the feature
As Angular is very popular Front end framework, it will be great if we're able to use FineUploader with ease.
I can understand that you have less time for features like these.
I'm very new to this library as I just started playing around with it and I have less knowledge about the core functions and the file structure.
What needs to be done here is to add TypeScript definition files and have named exports for all the modules.
You have already done something very similar for react-fine-uploader
I'm not sure how much work will it require for Angular 2 - TypeScript Compatibility.
Let me know your thoughts on it and I'll be happy to help If I can.
The text was updated successfully, but these errors were encountered: