@@ -13,10 +13,11 @@ import {toFloatAsString} from "../internal/utils/toFloatAsString";
1313import { DeliveryColorSpaceFromICC } from "./delivery/DeliveryColorSpaceFromICC" ;
1414import { DeliveryAction } from "./delivery/DeliveryAction" ;
1515import { ColorSpaceType } from "../types/types" ;
16+ import { QualityTypes } from "../types/types" ;
17+ import { ImageFormatType , VideoFormatType } from "../types/types" ;
1618
1719export type IDeliveryAction = DeliveryAction | DeliveryColorSpaceFromICC ;
1820
19-
2021/**
2122 * @summary action
2223 * @description Defines the format of the delivered asset.
@@ -40,7 +41,7 @@ export type IDeliveryAction = DeliveryAction | DeliveryColorSpaceFromICC;
4041 * );
4142 *
4243 */
43- function format ( format :FormatQualifier | string ) :DeliveryFormat {
44+ function format ( format :FormatQualifier | ImageFormatType | VideoFormatType | string ) :DeliveryFormat {
4445 return new DeliveryFormat ( 'f' , format ) ;
4546}
4647
@@ -75,7 +76,8 @@ function dpr(dpr: string|number):DeliveryAction {
7576 * <b>Learn more:</b> {@link https://cloudinary.com/documentation/image_optimization#how_to_optimize_image_quality | Image quality}
7677 * {@link https://cloudinary.com/documentation/video_manipulation_and_delivery#quality_control | Video quality}
7778 * @memberOf Actions.Delivery
78- * @param {string | number | Qualifiers.Quality } qualityType For a list of supported quality types see {@link Qualifiers.Quality| quality types} for
79+ * @param {QualityTypes | string | number | Qualifiers.Quality } qualityType For a list of supported quality types see
80+ * {@link Qualifiers.Quality| quality types} for
7981 * possible values.
8082 * @return {Actions.Delivery.DeliveryQualityAction }
8183 * @example
@@ -89,7 +91,7 @@ function dpr(dpr: string|number):DeliveryAction {
8991 * quality('auto'),
9092 * );
9193 */
92- function quality ( qualityType :string | number ) :DeliveryQualityAction {
94+ function quality ( qualityType :QualityTypes | string | number ) :DeliveryQualityAction {
9395 return new DeliveryQualityAction ( qualityType ) ;
9496}
9597
0 commit comments