文件操作 - types.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/nitropack/dist/presets/firebase/types.d.ts
编辑文件内容
import type { RuntimeOptions, region } from "firebase-functions"; import type { HttpsOptions } from "firebase-functions/v2/https"; export type FirebaseOptions = FirebaseOptionsGen1 | FirebaseOptionsGen2; export interface FirebaseOptionsBase { gen: 1 | 2; /** * Firebase functions node runtime version. * @see https://cloud.google.com/functions/docs/runtime-support * @see https://cloud.google.com/functions/docs/concepts/nodejs-runtime */ nodeVersion?: "22" | "20" | "18" | "16"; /** * When deploying multiple apps within the same Firebase project * you must give your server a unique name in order to avoid overwriting your functions. * * @default "server" */ serverFunctionName?: string; } export interface FirebaseOptionsGen1 extends FirebaseOptionsBase { gen: 1; /** * Firebase functions 1st generation region passed to `functions.region()`. */ region?: Parameters<typeof region>[0]; /** * Firebase functions 1st generation runtime options passed to `functions.runWith()`. */ runtimeOptions?: RuntimeOptions; } export interface FirebaseOptionsGen2 extends FirebaseOptionsBase { gen: 2; /** * Firebase functions 2nd generation https options passed to `onRequest`. * @see https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.https.httpsoptions */ httpsOptions?: HttpsOptions; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件