You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
that creates a one-off typedef of the parts we're using in those tests. Ideally, we would generate this into our generated externs, and it would be complete.
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:
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: