# Route parameters, location & querystring ## Accessing route parameters In your route components: ```svelte
Book ID: {routeParams.id}
``` ## Accessing location and querystring ```svelteCurrent page: {currentPath}
Query: {query}
Params: {JSON.stringify(params)}
``` ## TypeScript support with generics All helper functions support TypeScript generics for full intellisense: ```typescript // Define your types interface UserParams { userId: string tab?: string } interface UserQuery { search?: string page?: number tags?: string[] } // Use with type parameters for full intellisense const p = $derived(routeParams