re-nav/source/redirect/base.ts

10 lines
262 B
TypeScript
Raw Normal View History

2022-10-05 17:08:17 +00:00
import {HostnameParameters} from './hostname.js';
export type RedirectParameters = HostnameParameters;
export abstract class Redirect<P extends RedirectParameters> {
constructor(public parameters: P) {}
public abstract redirect(url: URL | string): URL;
}