文件操作 - error.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/nuxt/dist/app/composables/error.d.ts
编辑文件内容
import type { H3Error } from 'h3'; import type { Ref } from 'vue'; import type { NuxtPayload } from '../nuxt.js'; export declare const NUXT_ERROR_SIGNATURE = "__nuxt_error"; /** @since 3.0.0 */ export declare const useError: () => Ref<NuxtPayload["error"]>; export interface NuxtError<DataT = unknown> extends H3Error<DataT> { } /** @since 3.0.0 */ export declare const showError: <DataT = unknown>(error: string | Error | (Partial<NuxtError<DataT>> & { status?: number; statusText?: string; })) => NuxtError<DataT>; /** @since 3.0.0 */ export declare const clearError: (options?: { redirect?: string; }) => Promise<void>; /** @since 3.0.0 */ export declare const isNuxtError: <DataT = unknown>(error: unknown) => error is NuxtError<DataT>; /** @since 3.0.0 */ export declare const createError: <DataT = unknown>(error: string | Error | (Partial<NuxtError<DataT>> & { status?: number; statusText?: string; })) => NuxtError<DataT>;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件