export function isDefined( val: T ): val is T extends undefined ? never : T { return typeof val !== "undefined" }