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 1
1
import React from 'react' ;
2
+ import { PickerFileMetadata } from 'filestack-js' ;
2
3
3
4
type FilestackAction = 'transform' | 'retrieve' | 'metadata' | 'storeUrl' | 'upload' | 'multiupload' | 'remove' | 'pick' | 'removeMetadata' | 'preview' | 'logout' ;
4
5
5
6
type ComponentDisplayModeType = 'button' | 'link' | 'immediate' ;
6
7
7
8
interface FilestackResult { }
8
9
9
- interface FilestackError { }
10
+ // interface FilestackError {}
10
11
11
12
interface Props {
12
13
apikey : string ;
@@ -17,8 +18,8 @@ interface Props {
17
18
customClass ?: string ;
18
19
} ;
19
20
// actionOptions
20
- onSuccess ?: ( result : FilestackResult ) => void ;
21
- onError ?: ( error : FilestackError ) => void ;
21
+ onSuccess ?: ( result : PickerFileMetadata [ ] ) => void ;
22
+ onError ?: ( error : PickerFileMetadata [ ] ) => void ;
22
23
clientOptions ?: {
23
24
cname ?: string ;
24
25
security ?: {
You can’t perform that action at this time.
0 commit comments