Guest User

Untitled

a guest
Jul 15th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. export interface IAzureStorage {
  2. Blob: IBlobStorage;
  3. }
  4.  
  5. export interface IBlobStorage {
  6. ExponentialRetryPolicyFilter: any;
  7. createBlobServiceWithSas: (a: string, b: string) => IBlobService;
  8. }
  9.  
  10. export interface ISpeedSummary {
  11. on: (event: string, callback: () => void) => void;
  12. getCompletePercent: (len?: number) => string;
  13. getAverageSpeed: () => string;
  14. getSpeed: () => string;
  15. }
  16. export interface IBlobService {
  17. withFilter: (filter: any) => IBlobService;
  18. createBlockBlobFromBrowserFile: (
  19. container: string,
  20. filename: string,
  21. file: File,
  22. options: any,
  23. callback: (error: any, response: any) => void
  24. ) => ISpeedSummary;
  25. singleBlobPutThresholdInBytes: number;
  26. }
  27.  
  28. export interface ISasToken {
  29. storageUri: string;
  30. storageAccessToken: string;
  31. container: string;
  32. filename: string;
  33. }
  34.  
  35. export declare var AzureStorage: IAzureStorage;
Add Comment
Please, Sign In to add comment