Enhance routing in SvelteKit project by adding new receipt-related routes, updating existing route parameters, and improving layout handling. Refactor components to streamline UI interactions and remove unused imports for better performance.
This commit is contained in:
Vendored
+7
-3
@@ -27,9 +27,10 @@ export {};
|
||||
|
||||
declare module "$app/types" {
|
||||
export interface AppTypes {
|
||||
RouteId(): "/" | "/access-denied" | "/accounts" | "/items" | "/items/[id]" | "/login" | "/logout" | "/transactions";
|
||||
RouteId(): "/" | "/access-denied" | "/accounts" | "/items" | "/items/[id]" | "/login" | "/logout" | "/receipts" | "/receipts/new" | "/receipts/[id]" | "/transactions";
|
||||
RouteParams(): {
|
||||
"/items/[id]": { id: string }
|
||||
"/items/[id]": { id: string };
|
||||
"/receipts/[id]": { id: string }
|
||||
};
|
||||
LayoutParams(): {
|
||||
"/": { id?: string };
|
||||
@@ -39,9 +40,12 @@ declare module "$app/types" {
|
||||
"/items/[id]": { id: string };
|
||||
"/login": Record<string, never>;
|
||||
"/logout": Record<string, never>;
|
||||
"/receipts": { id?: string };
|
||||
"/receipts/new": Record<string, never>;
|
||||
"/receipts/[id]": { id: string };
|
||||
"/transactions": Record<string, never>
|
||||
};
|
||||
Pathname(): "/" | "/accounts" | "/items" | `/items/${string}` & {} | "/login" | "/logout" | "/transactions";
|
||||
Pathname(): "/" | "/accounts" | "/items" | `/items/${string}` & {} | "/login" | "/logout" | "/receipts" | "/receipts/new" | `/receipts/${string}` & {} | "/transactions";
|
||||
ResolvedPathname(): `${"" | `/${string}`}${ReturnType<AppTypes['Pathname']>}`;
|
||||
Asset(): string & {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user