File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import { PickerFileMetadata } from 'filestack-js' ;
23
34type FilestackAction = 'transform' | 'retrieve' | 'metadata' | 'storeUrl' | 'upload' | 'multiupload' | 'remove' | 'pick' | 'removeMetadata' | 'preview' | 'logout' ;
45
56type ComponentDisplayModeType = 'button' | 'link' | 'immediate' ;
67
78interface FilestackResult { }
89
9- interface FilestackError { }
10+ // interface FilestackError {}
1011
1112interface Props {
1213 apikey : string ;
@@ -17,8 +18,8 @@ interface Props {
1718 customClass ?: string ;
1819 } ;
1920 // actionOptions
20- onSuccess ?: ( result : FilestackResult ) => void ;
21- onError ?: ( error : FilestackError ) => void ;
21+ onSuccess ?: ( result : PickerFileMetadata [ ] ) => void ;
22+ onError ?: ( error : PickerFileMetadata [ ] ) => void ;
2223 clientOptions ?: {
2324 cname ?: string ;
2425 security ?: {
You can’t perform that action at this time.
0 commit comments