Browse Source

feat: allows to extend RouteMeta type

e22m4u 2 weeks ago
parent
commit
5c631918cf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/route/route.d.ts

+ 2 - 2
src/route/route.d.ts

@@ -39,9 +39,9 @@ export type RoutePostHandler<T = unknown, U = unknown> = (
 /**
 /**
  * Route meta.
  * Route meta.
  */
  */
-export type RouteMeta = {
+export interface RouteMeta {
   [key: string]: unknown;
   [key: string]: unknown;
-};
+}
 
 
 /**
 /**
  * Route definition.
  * Route definition.