expectSomeReturn input as T if the passed input is Some(T). Otherwise, throw TypeError with the passed msg. function expectSome<T>(input: Option<T>, msg: string): T;§expectSome<T>(input: Option<T>, msg: string): T[src]§Type Parameters§T[src]§Parameters§input: Option<T>[src]§msg: string[src]§Return Type§T[src]