ISSGParamsLike
Bun

interface

__experimental.SSGParamsLike

interface SSGParamsLike

Base interface for static site generation route parameters.

Supports both single string values and arrays of strings for dynamic route segments. This is typically used for route parameters like [slug], [...rest], or [id].

// Simple slug parameter
type BlogParams = { slug: string };

// Multiple parameters
type ProductParams = {
  category: string;
  id: string;
};

// Catch-all routes with string arrays
type DocsParams = {
  path: string[];
};