expectNotUndefinedReturn input as T if the passed input is not undefined. Otherwise, throw TypeError with the passed msg. function expectNotUndefined<T>(input: Undefinable<T>, msg: string): NotUndefined<T>;§expectNotUndefined<T>(input: Undefinable<T>, msg: string): NotUndefined<T>[src]§Type Parameters§T[src]§Parameters§input: Undefinable<T>[src]§msg: string[src]§Return Type§NotUndefined<T>[src]