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) 896 B
import IURLConfig from "./IURLConfig.js"; import ICloudConfig from "./ICloudConfig.js"; /** * @name ICloudinaryAssetConfigurations * @summary config * @description Defines the configuration needed to create URLs for cloudinary assets * * @prop {ICloudConfig} cloud * @prop {IURLConfig} url * @example * import Cloudinary from '@cloudinary/url-gen'; * // The Cloudinary Instance accepts an ICloudinaryAssetConfigurations as an argument * // ICloudinaryAssetConfigurations is built from two parts, the `cloud` and the `url` keys. * const cld = new Cloudinary({ * // the cloudConfig * cloud: { * cloudName: 'demo' * }, * // the urlConfig * url: { * cname: 'www.example.com', * forceVersion: true * } * }); */ interface ICloudinaryAssetConfigurations { cloud?: ICloudConfig; url?: IURLConfig; } export default ICloudinaryAssetConfigurations;