fix: linting

Merged from master
This commit is contained in:
2025-07-20 19:55:37 -06:00
parent ba9b182125
commit d922434357
2 changed files with 3 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ import type { DeepLinkError } from "../interfaces/deepLinks";
// Helper function to extract the first key from a Zod object schema // Helper function to extract the first key from a Zod object schema
function getFirstKeyFromZodObject( function getFirstKeyFromZodObject(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
schema: z.ZodObject<any>, schema: z.ZodObject<any>,
): string | undefined { ): string | undefined {
const shape = schema.shape; const shape = schema.shape;
@@ -74,6 +75,7 @@ function getFirstKeyFromZodObject(
export const ROUTE_MAP: Record<string, { name: string; paramKey?: string }> = export const ROUTE_MAP: Record<string, { name: string; paramKey?: string }> =
Object.entries(deepLinkSchemas).reduce( Object.entries(deepLinkSchemas).reduce(
(acc, [routeName, schema]) => { (acc, [routeName, schema]) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const paramKey = getFirstKeyFromZodObject(schema as z.ZodObject<any>); const paramKey = getFirstKeyFromZodObject(schema as z.ZodObject<any>);
acc[routeName] = { acc[routeName] = {
name: routeName, name: routeName,

View File

@@ -78,6 +78,7 @@ export default class DeepLinkErrorView extends Vue {
} }
// Deep link schema keys mapping // Deep link schema keys mapping
// This is an object with the route as the key and the first param name as the value
get deepLinkSchemaKeys() { get deepLinkSchemaKeys() {
return Object.fromEntries( return Object.fromEntries(
Object.entries(deepLinkSchemas).map(([route, schema]) => { Object.entries(deepLinkSchemas).map(([route, schema]) => {