Skip to main content

MigrationResult

type MigrationResult =
| {
error?: undefined;
newUrl: string;
oldUrl: string;
}
| {
error: CommsRequestError;
newUrl?: undefined;
oldUrl: string;
};

Result of translating a single URL in a batch migration. Discriminated by the presence of newUrl (success) or error (failure).