1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

All Clients - Route data typing clean up (#11265)

This commit is contained in:
Jared Snider
2024-09-30 13:51:31 -04:00
committed by GitHub
parent a11c627687
commit ffc97c385d
4 changed files with 141 additions and 104 deletions

View File

@@ -15,9 +15,15 @@ import {
/**
* Data properties acceptable for use in route objects (see usage in oss-routing.module.ts for example)
*/
export interface DataProperties {
titleId?: string; // sets the title of the current HTML document (shows in browser tab)
doNotSaveUrl?: boolean; // choose to not keep track of the previous URL in memory
export interface RouteDataProperties {
/**
* Title of the current HTML document (shows in browser tab)
*/
titleId?: string;
/**
* doNotSaveUrl - choose to not keep track of the previous URL in memory in the RouterService
*/
doNotSaveUrl?: boolean;
}
const DEEP_LINK_REDIRECT_URL = new KeyDefinition(ROUTER_DISK, "deepLinkRedirectUrl", {