# DecodedRoute

`type` in `custom-id` · v0.1.1

<https://docs.seedcord.org/packages/custom-id/0.1.1/types/decoded-route>

The outcome of decoding a wire against several customIds, the matched prefix paired with its values.

## Declaration

```ts
type DecodedRoute<Defs extends readonly AnyCustomId[]> = {
    [Index in keyof Defs]: Defs[Index] extends AnyCustomId
        ? {
              readonly prefix: Defs[Index]["prefix"];
              readonly params: DecodedParams<Defs[Index]["shape"]>;
          }
        : never;
}[number];
```
