Skip to main content

AnyParam

A utility type for use when you need to be able to accept any valid Param type.

import { AnyParam } from "@snout/router-path";

function logParam(param: AnyParam): void {
console.log(param.name);
}

Functionally equivalent to:

Param<string, any>;