import {Redirect} from './base.js'; export type SimpleParameters = { target: string; type: 'simple'; }; export class SimpleRedirect extends Redirect { public redirect(): URL { return new URL(this.parameters.target); } }