Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. blobService.doesBlobExist(containerName, blobName, (callbackResult: ErrorOrResult<BlobService.BlobResult>) => {
  2. //Want callbackResult.response here
  3. });
  4.  
  5. doesBlobExist(container: string, blob: string, callback: ErrorOrResult<BlobService.BlobResult>): void;
  6.  
  7. interface ErrorOrResult<TResult> {
  8. (error: Error, result: TResult, response: ServiceResponse): void
  9. }
  10.  
  11. blobService.doesBlobExist(containerName, blobName, (error, result, response) => {
  12. //i.e. specify the 3 items directly in the interface
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement