UNPKG

@cloudinary/url-gen

Version:

Cloudinary URL-Gen SDK ========================= [![Build Status](https://api.travis-ci.com/cloudinary/js-url-gen.svg?branch=master)](https://app.travis-ci.com/github/cloudinary/js-url-gen) ## About The Cloudinary URL-Gen SDK allows you to quickly and eas

31 lines (30 loc) 806 B
import IAuthTokenConfig from "./IAuthTokenConfig.js"; /** * @name ICloudConfig * @summary config * @description Defines the global configuration applied when generating Cloudinary URLs. * @prop {string} [cloudName] * @prop {string} [apiKey] * @prop {string} [apiSecret] * @prop {IAuthTokenConfig} [authToken] * @example * import Cloudinary from '@cloudinary/url-gen'; * // The Cloudinary Instance accepts a CloudConfig under the `cloud` key * const cld = new Cloudinary({ * // the cloudConfig * cloud: { * cloudName: 'demo' * }, * // the urlConfig * url: { * // ... urlConfig is optional. * } * }); */ interface ICloudConfig { cloudName?: string; apiKey?: string; apiSecret?: string; authToken?: IAuthTokenConfig; } export default ICloudConfig;