diff --git a/package.json b/package.json index 94e7928..b1aaa60 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package", "name": "@kevisual/router", - "version": "0.0.4-alpha-3", + "version": "0.0.4-alpha-4", "description": "", "main": "dist/index.js", "module": "dist/index.js", diff --git a/src/route.ts b/src/route.ts index b56da9f..6aad5fc 100644 --- a/src/route.ts +++ b/src/route.ts @@ -34,7 +34,7 @@ export type RouteContext = { index?: number; } & T; -export type Run = (ctx?: RouteContext) => Promise; +export type Run = (ctx: RouteContext) => Promise; export type NextRoute = Pick; export type RouteOpts = {