From c72ab8b661ad263ec3f614b6cb6ea12c8033c36a Mon Sep 17 00:00:00 2001 From: Patricia Sanes Date: Tue, 9 Jun 2020 01:31:13 -0300 Subject: [PATCH] Fix typo in destroy method `resource_types` should be `resource_type` as documented in https://cloudinary.com/documentation/image_upload_api_reference#optional_parameters-2 --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 1d6086af..74f9e67a 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -943,7 +943,7 @@ declare module 'cloudinary' { function create_zip(options?: ArchiveApiOptions, callback?: ResponseCallback): Promise; - function destroy(public_id: string, options?: { resource_types?: ResourceType, type?: DeliveryType, invalidate?: boolean }, callback?: ResponseCallback,): Promise; + function destroy(public_id: string, options?: { resource_type?: ResourceType, type?: DeliveryType, invalidate?: boolean }, callback?: ResponseCallback,): Promise; function destroy(public_id: string, callback?: ResponseCallback,): Promise;