Files
rspade_system/node_modules/@jqhtml/router/dist/route.d.ts
root d7d341f752 Update npm packages to latest versions
Fix JavaScript sourcemap paths to show full file locations
Implement --build-debug flag and complete Build UI streaming
Add xterm.js terminal UI and fix asset path routing
Add RSpade Build UI service with WebSocket support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-31 08:12:33 +00:00

59 lines
1.9 KiB
TypeScript

/**
* Base class for route components in JQHTML Router v2
*/
import { Jqhtml_Component } from '@jqhtml/core';
import type { RouteMeta } from './types.js';
declare module '@jqhtml/core' {
interface Jqhtml_Component {
_is_route?: boolean;
}
}
export declare class Jqhtml_Route extends Jqhtml_Component {
static routes: string[];
static layout: string;
static meta: RouteMeta;
_is_route: boolean;
args: Record<string, any>;
constructor(options?: any);
/**
* Called during app initialization to register routes
* This is where routes call register_route for each path they handle
*/
static init(): void;
/**
* Generate URL for this route with given parameters
* Static version for generating URLs without an instance
*/
static url(params?: Record<string, any>): string;
/**
* Generate URL for this route with current args merged with new params
* Instance method that includes current route parameters
*/
url(params?: Record<string, any>): string;
/**
* Navigate to this route with given parameters
* Static version for programmatic navigation
*/
static dispatch(params?: Record<string, any>): void;
/**
* Navigate to this route with current args merged with new params
* Instance method for navigation from within a route
*/
dispatch(params?: Record<string, any>): void;
/**
* Called before this route is activated
* Can be used for route-specific guards
*/
pre_dispatch(): Promise<boolean | string>;
/**
* Called after this route has fully loaded
* Can be used for analytics, etc.
*/
post_dispatch(): Promise<void>;
/**
* Override on_render for custom route rendering
* By default does nothing - routes should override this or use templates
*/
on_render(): Promise<void>;
}
//# sourceMappingURL=route.d.ts.map