import {MigrationError} from "../migration-error"; /** * Removes all `undefined` values from the array of `errors` */ export function normalizeMigrationErrors ( ...errors : ArrT ) : readonly Exclude[] { return errors.filter( (err : ArrT[number]) : err is Exclude => { return err != undefined; } ); }