Fix RouterConfig type

This commit is contained in:
Daniele Rubetti 2022-11-25 19:22:02 +01:00
parent 15127e84b0
commit ef02b3fc6a

View File

@ -30,7 +30,7 @@ type CollectionTypeRouterConfig = {
type RouterConfig = {
prefix?: string;
only: string[];
only?: string[];
except?: string[];
config: SingleTypeRouterConfig | CollectionTypeRouterConfig;
};