4 lines
152 B
TypeScript
4 lines
152 B
TypeScript
import { useParams as useParamsRR } from "react-router-dom";
|
|
|
|
export const useParams = <T extends Record<string, string>>() =>
|
|
useParamsRR<T>() as T;
|