/** * Shared types and utilities for nb_inertia * * This module provides common types and utilities used across React and Vue components. */ /** * RouteResult type from nb_routes rich mode * * Rich mode route helpers return objects with both url and method, * allowing components to automatically use the correct HTTP method. * * NOTE: This type matches @inertiajs/core's UrlMethodPair type exactly. * The official Inertia.js router and Link components already support this pattern. */ export type RouteResult = { url: string; method: 'get' | 'post' | 'put' | 'patch' | 'delete'; }; /** * Type guard to check if a value is a RouteResult object * * @param value - Value to check * @returns true if value is a RouteResult object */ export declare function isRouteResult(value: unknown): value is RouteResult; //# sourceMappingURL=types.d.ts.map