@scalar/api-client
Version:
the open source API testing client
7 lines • 620 B
TypeScript
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
import type { RouteLocationNormalizedGeneric } from 'vue-router';
import type { ScalarClientAppRouteParams } from '../../../../v2/features/app/helpers/routes.js';
/** Extracts a string parameter from the route */
export declare function getRouteParam(paramName: 'method', route: RouteLocationNormalizedGeneric | null): HttpMethod | undefined;
export declare function getRouteParam(paramName: Exclude<ScalarClientAppRouteParams, 'method'>, route: RouteLocationNormalizedGeneric | null): string | undefined;
//# sourceMappingURL=get-route-param.d.ts.map