LogoRobo.js
Framework

ScannedEntry

Interface: ScannedEntry

Represents a file discovered during directory scanning. Passed to route processor functions.

Properties

PropertyTypeDescription
dynamicSegments?{ catchAll: { optional: boolean; param: string; }; params: string[]; }Dynamic segment information extracted from the path. Only present if the path contains dynamic segments like [id], [...path], [[...slug]].
dynamicSegments.catchAll?{ optional: boolean; param: string; }Catch-all segment info if present. Examples { param: "path", optional: false } for [...path].ts { param: "slug", optional: true } for [[...slug]].ts
dynamicSegments.catchAll.optionalboolean-
dynamicSegments.catchAll.paramstring-
dynamicSegments.paramsstring[]List of dynamic parameter names from [param] segments. Example ["id", "slug"] for /users/[id]/posts/[slug].ts
exportsRecord<string, unknown>All exports from the handler file. Includes default, config, and any named exports.
filePathstringFile path relative to /src. Example "commands/admin/ban.ts"
keystringGenerated key for this handler. Based on file path and route's KeyConfig. Example "ping", "admin ban", "users/[id]"
relativePathstringRelative path within the route directory. Example "admin/ban.ts" for /src/commands/admin/ban.ts
typestringFull type identifier combining namespace and route name. Example "discord:commands", "server:api"

On this page