export const isDefined = (value: T | null | undefined): value is T => { return value !== null && typeof value !== 'undefined'; };