@osaedasia/oresume
Version:
A user-friendly library for generating complete Single Page Applications (SPAs)
18 lines (17 loc) • 656 B
TypeScript
import { QueryParamTypeMap } from "../../../domain/definitions/types/QueryParam";
import { UrlRouteConfig } from "../../../domain/models/UrlRoute";
/**
* Interface representing the configuration for a page.
* @template OriginalUrl The original URL type associated with the page.
* @template TParamTypeMap The type mapping for query parameters.
*/
export interface IPageConfig<OriginalUrl extends string, TParamTypeMap extends QueryParamTypeMap = never> {
/**
* The URL route configuration for the page.
*/
route: UrlRouteConfig<OriginalUrl, TParamTypeMap>;
/**
* The display name of the page.
*/
pageName: string;
}