Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update transformation types for Cloudinary Video Player #202 #215

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nooras
Copy link
Contributor

@nooras nooras commented Oct 9, 2024

Description

Update transformation types for Cloudinary Video Player
Dependency: @cloudinary/url-gen

Issue Ticket Number

Fixes #202

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Fix or improve the documentation
  • This change requires a documentation update

Checklist

  • I have followed the contributing guidelines of this project as mentioned in CONTRIBUTING.md
  • I have created an issue ticket for this PR
  • I have checked to ensure there aren't other open Pull Requests for the same update/change?
  • I have performed a self-review of my own code
  • I have run tests locally to ensure they all pass
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes needed to the documentation

@nooras
Copy link
Contributor Author

nooras commented Oct 9, 2024

Hey @colbyfayock
This PR have some test checks failure
how can I fix it ? Also can you please review the code changes?

@colbyfayock
Copy link
Collaborator

looks like a linting error. you can run pnpm run lint from the root of the project

image

@@ -495,4 +499,343 @@ export interface CloudinaryVideoPlayerOptionsCloudinaryAnalyticsCustomData {
customData3?: string;
customData4?: string;
customData5?: string;
}

export type AudioCodecType = string | "none" | "aac" | "vorbis" | "mp3";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need all of these types copy and pasted into here now that we're using the Transformation type directly from the url-gen package? i thought we'd only relaly need to import that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be able to, for the most part, copy in all of the types from the above int othe types/cloudinary-video-player.ts file

Isn't changes are correct?
According to issue need to copy from there!
Let me know how can I proceed here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah apologies for the confusion, i thought we had decided that instead of copying in the type,s we would import it from the url-gen package, and i THINK that should be sufficient. so then you would point the video player transformation property to the imported type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Update transformation types for Cloudinary Video Player
2 participants