export type Nullable = T | null | undefined; export const checkIsDefined = (maybeT: Nullable): maybeT is T => maybeT !== null && maybeT !== undefined