Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Typescript definition file for fine-uploader-wrappers #3

Open
rakeshmotghare opened this issue Sep 7, 2017 · 1 comment
Open

Typescript definition file for fine-uploader-wrappers #3

rakeshmotghare opened this issue Sep 7, 2017 · 1 comment

Comments

@rakeshmotghare
Copy link

Uploader type

Traditional
Feature Request

Fine Uploader version 5.15.0

Fine Uploader Wrappers version

1.0.0

Browsers where the bug is reproducible

Almost All

Operating systems where the bug is reproducible

Windows 10

Feature request details

It will really help and time saver if you provide a typescript definition file during the npm install.

Feature Request
I am getting error while committing my changes to VSTS. Could not find a declaration file for module 'fine-uploader-wrappers'. 'd:\a\1\s\WebUI\node_modules\fine-uploader-wrappers\traditional.js' implicitly has an 'any' type

In my local, I have resolved this issue by creating a .d.ts file for the FineUploaderTraditional I am using from fine uploader wrappers. But when I create a pull request it fails as the build does a npm install which overwrites the contents in fine-uploader-wrappers folder in node_modules folder.

Here is the code I was using in a index.d.ts file I have created to make FineUploaderTraditional work in typescript.

export default class FineUploaderTraditional{
constructor(obj:any);
on(eventName:string, callBackFunction:Function):void;
}

@rakeshmotghare
Copy link
Author

Any update, can we have a typescript definition file for the FineUploaderTraditional. I have tried to create a js wrapper to avoid .ts file but no luck.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant