export function notNull(input: null | undefined | T): input is T | undefined { return input !== null; } export function notUndefined(input: null | undefined | T): input is T | null{ return input !== undefined; } export function notNullish(input: null | undefined | T): input is T { return notNull(input) && notUndefined(input); }