export function isDefined(x: T | undefined): x is T { return x !== undefined; }