Please include provided Typescript definition
See original GitHub issueHey!
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:
- Created 5 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Done.
@CorayThan Merged and deployed. Please update npm package