返回 Skill 列表
extension
分类: 开发与工程无需 API Key

env-constants

生成src/shared/EnvConsts.ts,用于类型安全的环境变量访问。提供TypeScript接口和导出,以便在整个应用程序中访问Vite环境变量。

person作者: jakexiaohubgithub

Environment Constants Skill

Purpose

Generate the src/shared/EnvConsts.ts file for accessing environment variables with type safety.

Output

Create the file: src/shared/EnvConsts.ts

Example File

See: examples.md in this directory for complete examples and detailed explanations.

Notes

  • Wraps Vite's import.meta.env for type safety
  • Provides default values for all environment variables.