Skip to content

Commit e2a8010

Browse files
committed
feat: allow function in default
1 parent e5a73fc commit e2a8010

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/runtime.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ export interface DefinePageQueryParamOptions<T = unknown> {
101101
* (e.g. a invalid number is passed to the int param parser). If not provided
102102
* and the param parser throws, the route will not match.
103103
*/
104-
default?: T
105-
// TODO: handle function syntax
106-
// default?: (() => T) | T
104+
default?: (() => T) | T
107105

108106
/**
109107
* How to format the query parameter value.

0 commit comments

Comments
 (0)