Skip to content

Commit 4116da3

Browse files
committed
type ClientOptions
1 parent e911b9a commit 4116da3

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/index.d.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { PickerFileMetadata } from 'filestack-js';
2+
import { PickerFileMetadata, ClientOptions } from 'filestack-js';
33

44
type FilestackAction = 'transform' | 'retrieve' | 'metadata' | 'storeUrl' | 'upload' | 'multiupload' | 'remove' | 'pick' | 'removeMetadata' | 'preview' | 'logout';
55

@@ -16,14 +16,7 @@ interface Props {
1616
// actionOptions
1717
onSuccess?: (result: PickerFileMetadata[]) => void;
1818
onError?: (error: PickerFileMetadata[]) => void;
19-
clientOptions?: {
20-
cname?: string;
21-
security?: {
22-
policy?: string;
23-
signature?: string;
24-
};
25-
sessionCache?: boolean;
26-
};
19+
clientOptions?: ClientOptions;
2720
file?: File;
2821
source?: string;
2922
customRender?: React.ComponentType;

0 commit comments

Comments
 (0)