re-nav/source/redirect/simple.ts

8 lines
168 B
TypeScript

import {Redirect} from './base.js';
export class SimpleRedirect extends Redirect {
public redirect(): URL {
return new URL(this.parameters.redirectValue);
}
}