diff --git a/packages/astro/src/types/public/internal.ts b/packages/astro/src/types/public/internal.ts index bced5ba2488b..939c2f5f378e 100644 --- a/packages/astro/src/types/public/internal.ts +++ b/packages/astro/src/types/public/internal.ts @@ -52,8 +52,18 @@ export interface RouteData { */ component: string; /** - * TBD - * @param data + * @param {any} data The optional parameters of the route + * + * @description + * A function that accepts a list of params, interpolates them with the route pattern, and returns the path name of the route. + * + * ## Example + * + * For a route such as `/blog/[...id].astro`, the `generate` function would return something like this: + * + * ```js + * console.log(generate({ id: 'presentation' })) // will log `/blog/presentation` + * ``` */ generate: (data?: any) => string; /**