Add shaka namespace types to generated externs #6762
Labels
component: build system
The issue involves the build system of Shaka Player
priority: P3
Useful but not urgent
type: enhancement
New feature or request
Milestone
There are cases where we want to refer to the type of the shaka namespace in a type-safe way. For example, in
test/test/util/loader.js
, we load the Shaka library dynamically for tests without inserting it into the global namespace. To refer to that with strong types, we need a namespace type.Today, we have code like in
shaka-player/test/test/util/loader.js
Lines 7 to 40 in 7bcb86e
This has also come up in context of the Cast Application Framework, which depends on Shaka Player and has unit tests that mock the Shaka API. For those tests, we would like to use the same complete, generated typedef for the namespace.
The text was updated successfully, but these errors were encountered: