Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Jan 16, 2025
1 parent b0d46b9 commit 12e361c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ export function getUniversalProp<T extends object, K extends keyof UniversalSymb
return defaultValue;
}

/**
* The enhance helper provides a way to attach metadata to Middlewares and Handlers.
* This metadata can include routing information like path and method, as well as order for automatic middleware sequencing.
* @see {@link https://d80b2041.universal-middleware.pages.dev/helpers/enhance}
*/
export function enhance<F extends AnyFn, O extends UniversalOptionsArg>(
middleware: F,
options: O,
Expand Down

0 comments on commit 12e361c

Please sign in to comment.