refactor(core): add return type to useMcFlyRoute
This commit is contained in:
parent
eb8f5baa49
commit
8bd1491dc8
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ import { parseScript } from "esprima";
|
||||||
* @typedef {import('unstorage').Storage} Storage
|
* @typedef {import('unstorage').Storage} Storage
|
||||||
* @typedef {import('ultrahtml').Node} HtmlNode
|
* @typedef {import('ultrahtml').Node} HtmlNode
|
||||||
* @typedef {import('estree').BaseNode} JsNode
|
* @typedef {import('estree').BaseNode} JsNode
|
||||||
|
* @typedef {import('h3').EventHandler} EventHandler
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +16,7 @@ import { parseScript } from "esprima";
|
||||||
* config: function(): McFlyConfig,
|
* config: function(): McFlyConfig,
|
||||||
* storage: Storage
|
* storage: Storage
|
||||||
* }} param0
|
* }} param0
|
||||||
* @returns
|
* @returns {EventHandler}
|
||||||
*/
|
*/
|
||||||
export function useMcFlyRoute({ config, storage }) {
|
export function useMcFlyRoute({ config, storage }) {
|
||||||
return eventHandler(async (event) => {
|
return eventHandler(async (event) => {
|
||||||
|
|
Loading…
Reference in a new issue