UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

21 lines (20 loc) 644 B
import type { Location } from 'react-router-dom'; /** * Joins location path and hash * @param location Location object * @returns element Id based on location */ export declare function getLocationId(location: Location): string; /** * Removes context prefixes for desired length * @param elementId Element ID * @param prefixDepth Desired prefixDepth * @returns element Id without prefix */ export declare function normalizeElementId(elementId: string, params?: { trimLeadingParts?: number; resultParts?: number; }): string; export declare function getNavigationIdProp(navigationId: string): { "data-section-id": string; };