Skip to content

Commit

Permalink
chore: add typeings for query string parser
Browse files Browse the repository at this point in the history
  • Loading branch information
vwong committed Jan 30, 2025
1 parent 5636a3b commit 13a1081
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ declare namespace Router {
deriveConstraint<Context>(req: Req<V>, ctx?: Context) : T,
}

type QuerystringParser = (s: string) => unknown;

interface Config<V extends HTTPVersion> {
ignoreTrailingSlash?: boolean;

Expand All @@ -82,6 +84,8 @@ declare namespace Router {

maxParamLength?: number;

querystringParser?: QuerystringParser;

defaultRoute?(
req: Req<V>,
res: Res<V>
Expand Down

0 comments on commit 13a1081

Please sign in to comment.