@@ -9,7 +9,7 @@ import ToAnimatedAction from "./transcode/ToAnimatedAction";
99import { AnimatedFormatQualifierValue } from "../qualifiers/animatedFormat/AnimatedFormatQualifierValue" ;
1010import { AdvVideoCodecType , VideoCodecType } from "../qualifiers/videoCodecType/VideoCodecType" ;
1111import { VideoCodecAction } from "./transcode/VideoCodecAction" ;
12-
12+ import { AnimatedFormatType , AudioCodecType } from "../types/types" ;
1313
1414export type ITranscodeAction = BitRateAction
1515 | AudioCodecAction
@@ -57,7 +57,7 @@ function audioFrequency(freq: string|number): AudioFrequencyAction{
5757 * @summary action
5858 * @memberOf Actions.Transcode
5959 * @description Sets the audio codec or removes the audio channel.
60- * @param {string } codec The audio codec or "none".
60+ * @param {AudioCodecType | string } codec The audio codec or "none".
6161 * @example
6262 * import {Cloudinary} from "@cloudinary/base/instance/Cloudinary";
6363 * import {aac} from '@cloudinary/base/qualifiers/audioCodec'
@@ -69,7 +69,7 @@ function audioFrequency(freq: string|number): AudioFrequencyAction{
6969 * video.transcode( audioCodec( aac() ) );
7070 * @return {Actions.Transcode.AudioCodecAction }
7171 */
72- function audioCodec ( codec : string ) : AudioCodecAction {
72+ function audioCodec ( codec : AudioCodecType | string ) : AudioCodecAction {
7373 return new AudioCodecAction ( codec ) ;
7474}
7575/**
@@ -183,7 +183,7 @@ function streamingProfile(profile: string): StreamingProfileAction {
183183 * @summary action
184184 * @memberOf Actions.Transcode
185185 * @description Converts a video to animated image.
186- * @param {string } animatedFormat The streaming profile.
186+ * @param {string | AnimatedFormatType } animatedFormat The streaming profile.
187187 * @example
188188 * import {Cloudinary} from "@cloudinary/base/instance/Cloudinary";
189189 * import {gif} from '@cloudinary/base/qualifiers/animatedFormat'
@@ -195,7 +195,7 @@ function streamingProfile(profile: string): StreamingProfileAction {
195195 * video.transcode( toAnimated( gif() ) );
196196 * @return {Actions.Transcode.ToAnimatedAction }
197197 */
198- function toAnimated ( animatedFormat : AnimatedFormatQualifierValue | string = '' ) : ToAnimatedAction {
198+ function toAnimated ( animatedFormat : AnimatedFormatQualifierValue | AnimatedFormatType | string = '' ) : ToAnimatedAction {
199199 return new ToAnimatedAction ( animatedFormat ) ;
200200}
201201
0 commit comments