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

[JW Player Video Provider][Video JS Video Provider]: Add missing typedefs #11901

Merged
merged 7 commits into from
Jul 2, 2024

Conversation

karimMourra
Copy link
Collaborator

Type of change

  • Code style update (formatting, local variables)

Description of change

Adds missing typedefs for types that are referenced to avoid linter warnings.
It would be nice if the types could be shared to reduce duplication

Copy link

github-actions bot commented Jul 1, 2024

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. Keep up the great work! 🚀

Copy link

github-actions bot commented Jul 1, 2024

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. Keep up the great work! 🚀

Copy link

github-actions bot commented Jul 1, 2024

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. Keep up the great work! 🚀

@patmmccann
Copy link
Collaborator

It is possible to import types, @chernodub did it here

https://github.com/prebid/Prebid.js/blob/master/src/types/ortb2.d.ts

@patmmccann
Copy link
Collaborator

https://github.com/prebid/Prebid.js/pull/11902/files is also importing types

Copy link

github-actions bot commented Jul 2, 2024

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. Keep up the great work! 🚀

Copy link

github-actions bot commented Jul 2, 2024

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. Keep up the great work! 🚀

@@ -13,9 +13,6 @@ import { submodule } from '../src/hook.js';
import stateFactory from '../libraries/video/shared/state.js';
import { PLAYBACK_MODE } from '../libraries/video/constants/constants.js';
import { getEventHandler } from '../libraries/video/shared/eventHandler.js';
/**
* @typedef {import('../libraries/video/shared/state.js').State} State
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why revert this? looks like it worked

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

THe duplication check is buggy . I tried to see if reducing the amount of files changed could limit its scope, but that's not the case.

Copy link

github-actions bot commented Jul 2, 2024

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. Keep up the great work! 🚀

@patmmccann
Copy link
Collaborator

Thanks!

@patmmccann patmmccann merged commit 33373f0 into prebid:master Jul 2, 2024
2 of 4 checks passed
DecayConstant pushed a commit to mediavine/Prebid.js that referenced this pull request Jul 18, 2024
…defs (prebid#11901)

* adds missing typedefs

* revert videojs

* restore videojs

* uses typedef import statements

* unifies statements

* undo videojs

* restore import
mefjush pushed a commit to adhese/Prebid.js that referenced this pull request Jul 19, 2024
…defs (prebid#11901)

* adds missing typedefs

* revert videojs

* restore videojs

* uses typedef import statements

* unifies statements

* undo videojs

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

Successfully merging this pull request may close these issues.

None yet

3 participants