chooseVideo.d.ts 499 B

1234567891011121314151617181920
  1. declare type SourceType = 'album' | 'camera';
  2. export interface ChooseVideoParams {
  3. sourceType?: SourceType[];
  4. maxDuration?: string;
  5. }
  6. export interface ChooseVideoResult {
  7. filePath: string;
  8. duration: string;
  9. size: number;
  10. height: number;
  11. width: number;
  12. }
  13. declare function chooseVideo(args: ChooseVideoParams): Promise<ChooseVideoResult>;
  14. declare namespace chooseVideo {
  15. var version: {
  16. android: string;
  17. ios: string;
  18. };
  19. }
  20. export default chooseVideo;