refactor: introduce dedicated identifier types for improved clarity and type safety
This commit is contained in:
@@ -2,8 +2,7 @@ import React, { useEffect } from 'react';
|
||||
import { Navigate, useNavigate, useParams } from 'react-router-dom';
|
||||
|
||||
import { useAppShell } from '../appShellContext';
|
||||
|
||||
type Identifier = string | number;
|
||||
import type { Identifier } from '../types/identifiers';
|
||||
|
||||
interface DocumentViewerRouteContext {
|
||||
previewWorkspaceDocument?: { id?: Identifier } | null;
|
||||
|
||||
Reference in New Issue
Block a user