feat: remove options context
This commit is contained in:
parent
52f5f58baf
commit
d6eb8393e0
@ -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",
|
||||
|
@ -34,7 +34,7 @@ export type RouteContext<T = { code?: number }, S = any> = {
|
||||
index?: number;
|
||||
} & T;
|
||||
|
||||
export type Run<T = any> = (ctx?: RouteContext<T>) => Promise<typeof ctx | null | void>;
|
||||
export type Run<T = any> = (ctx: RouteContext<T>) => Promise<typeof ctx | null | void>;
|
||||
|
||||
export type NextRoute = Pick<Route, 'id' | 'path' | 'key'>;
|
||||
export type RouteOpts = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user