pkg-cloudinary-core
pkg-cloudinary-core copied to clipboard
Fix: Typescript Type Definition for Configuration.Options.secure_distribution type
The Type definition for Configuration.Options.secure_distribution
is wrong. Type definitions declare it as boolean | undefined
https://github.com/cloudinary/pkg-cloudinary-core/blob/47ffb3b0c1a163fb1b4e2fc74931c1992a23122b/cloudinary-core.d.ts#L813, wheres Usage inline-docs and application behavior indicate it must be a string containing the cname to use, not just a boolean value.
See
- https://github.com/cloudinary/pkg-cloudinary-core/blob/47ffb3b0c1a163fb1b4e2fc74931c1992a23122b/cloudinary-core.js#L4815
- https://github.com/cloudinary/pkg-cloudinary-core/blob/47ffb3b0c1a163fb1b4e2fc74931c1992a23122b/cloudinary-core.js#L4857