From d6eb8393e091bd751d96d6f9ec37d64bf29540ea Mon Sep 17 00:00:00 2001 From: xion Date: Thu, 31 Oct 2024 00:56:57 +0800 Subject: [PATCH] feat: remove options context --- package.json | 2 +- src/route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = {