question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please include provided Typescript definition

See original GitHub issue

Hey!

I created TS definition based on code source. Could you please include it?

File: index.d.ts

Source Code :

export interface DropzoneAreaProps {
        acceptedFiles?: string[];
        filesLimit?: number;
        maxFileSize?: number;
        dropzoneText?: string;
        showPreviews?: boolean;
        showPreviewsInDropzone?: boolean;
        showAlerts?: boolean;
        clearOnUnmount?: boolean;
        onChange?: (files: any) => void;
        onDrop?: (files: any) => void;
        onDropRejected?: (files: any, evt: any) => void;
        onDelete?: (file: any) => void;
    }
export const DropzoneArea: React.ComponentType<DropzoneAreaProps>;

export interface DropzoneDialogProps {
        open: boolean
        onSave?: (files: any) => void;
        onDelete?: (file: any) => void;
        onClose?: () => void; 
        onChange?: (files: any) => void; 
        onDrop?: (files: any) => void; 
        onDropRejected?: (files: any, evt: any) => void; 
        acceptedFiles?: string[];
        filesLimit?: number; 
        maxFileSize?: number 
        showPreviews?: boolean;
        showPreviewsInDropzone?: boolean; 
        showAlerts?: boolean; 
        clearOnUnmount?: boolean; 
}
export const DropzoneDialog: React.ComponentType<DropzoneDialogProps>;

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Yuvaleroscommented, Feb 6, 2019

Done.

0reactions
Diavercommented, Feb 8, 2019

@CorayThan Merged and deployed. Please update npm package

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do I have to reference TypeScript definition in every file?
One way to do this is by making sure all required declaration files and TypeScript source files are passed to the compiler as...
Read more >
TypeScript: Adding Custom Type Definitions for Existing ...
Before you write custom types, you need to tell the transpiler about them. To do this you should edit the tsconfig.json file, and...
Read more >
Documentation - Do's and Don'ts
General Types. Number , String , Boolean , Symbol and Object. ❌ Don't ever use the types Number , String , Boolean ,...
Read more >
How to set up TypeScript
Having TypeScript set up on a per-project basis lets you have many projects with many different versions of TypeScript, this keeps each project...
Read more >
JSDoc Reference - TypeScript: Documentation
JSDoc Reference. The list below outlines which constructs are currently supported when using JSDoc annotations to provide type information in JavaScript files.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found