文件操作 - runtime-hook.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/nuxt/dist/app/composables/runtime-hook.d.ts
编辑文件内容
import type { HookCallback } from 'hookable'; import type { RuntimeNuxtHooks } from '../nuxt.js'; /** * Registers a runtime hook in a Nuxt application and ensures it is properly disposed of when the scope is destroyed. * @param name - The name of the hook to register. * @param fn - The callback function to be executed when the hook is triggered. * @since 3.14.0 */ export declare function useRuntimeHook<THookName extends keyof RuntimeNuxtHooks>(name: THookName, fn: RuntimeNuxtHooks[THookName] extends HookCallback ? RuntimeNuxtHooks[THookName] : never): void;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件