@kitbag/router 0.18.2 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,7 +74,6 @@ export declare type AddGlobalRouteHooks = (hooks: RouteHooks) => void;
74
74
  export declare type AfterHookContext = {
75
75
  to: ResolvedRoute;
76
76
  from: ResolvedRoute | null;
77
- app: App | null;
78
77
  };
79
78
 
80
79
  /**
@@ -109,7 +108,11 @@ export declare type AfterRouteHookResponse = CallbackSuccessResponse | CallbackP
109
108
 
110
109
  declare type AllPropertiesAreOptional<T> = Record<string, unknown> extends T ? true : IsEmptyObject<OnlyRequiredProperties<T>>;
111
110
 
112
- export declare function arrayOf<const T extends Param[]>(...params: T): ParamGetSet<ExtractParamType<T[number]>[]>;
111
+ export declare function arrayOf<const T extends Param[]>(params: T, options?: ArrayOfOptions): ParamGetSet<ExtractParamType<T[number]>[]>;
112
+
113
+ declare type ArrayOfOptions = {
114
+ separator?: string;
115
+ };
113
116
 
114
117
  declare type AsNamedRoute<T extends Route> = IsRouteUnnamed<T> extends true ? never : T;
115
118
 
@@ -130,7 +133,6 @@ export declare function asUrl(value: string): Url;
130
133
  export declare type BeforeHookContext = {
131
134
  to: ResolvedRoute;
132
135
  from: ResolvedRoute | null;
133
- app: App | null;
134
136
  };
135
137
 
136
138
  /**
@@ -1211,9 +1213,13 @@ declare type TupleOf<T extends Param[]> = {
1211
1213
  [K in keyof T]: ExtractParamType<T[K]>;
1212
1214
  };
1213
1215
 
1214
- export declare function tupleOf<const T extends Param[]>(...params: T): ParamGetSet<TupleOf<T>>;
1216
+ export declare function tupleOf<const T extends Param[]>(params: T, options?: TupleOfOptions): ParamGetSet<TupleOf<T>>;
1217
+
1218
+ declare type TupleOfOptions = {
1219
+ separator?: string;
1220
+ };
1215
1221
 
1216
- export declare function unionOf<const T extends Param[]>(...params: T): ParamGetSet<ExtractParamType<T[number]>>;
1222
+ export declare function unionOf<const T extends Param[]>(params: T): ParamGetSet<ExtractParamType<T[number]>>;
1217
1223
 
1218
1224
  export declare type Url = `http://${string}` | `https://${string}` | `/${string}`;
1219
1225