We briefly discussed this personally, but overall the idea is this: get rid of manual interface declaration in favour of automatic params inferring based on passed pages config.
[x] implement usual string params
[x] implement regex params
[x] update documentation
[x] implement optional path params
[ ] possibly, get rid of as const completely by using Readonly?
[x] fix tests
[x] check test/types.ts and test/errors.ts so everything looks good
We briefly discussed this personally, but overall the idea is this: get rid of manual interface declaration in favour of automatic params inferring based on passed pages config.
as const
completely by usingReadonly
?test/types.ts
andtest/errors.ts
so everything looks good