Class: shaka.util.TypedBind

A bind wrapper which infers and preserves type information in the closure compiler. Function.prototype.bind, in contrast, destroys the compiler's type information. As a trade-off, this interface limits the number of arguments to the bound function and does not permit partial binding.

Parameters:
Name Type Description
context CLASS
fn function(this:CLASS, A)
Source:
Returns:
Type
function(A)