Skip to content

Commit

Permalink
fix(src/env.d.ts): declare envs as readonly (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 authored Feb 21, 2024
1 parent 384f30c commit 2008286
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,23 @@ declare module "bun" {
/**
* Token of the Discord bot.
*/
// biome-ignore lint/style/useNamingConvention: should be SCREAMING_SNAKE_CASE
DISCORD_BOT_TOKEN: string;
readonly DISCORD_BOT_TOKEN: string;

/**
* ID of the Discord guild where the bot is used.
*/
// biome-ignore lint/style/useNamingConvention:
DISCORD_GUILD_ID: string;
readonly DISCORD_GUILD_ID: string;

/**
* Email of the Google Cloud service account.
* (`client_email` in the JSON file)
*/
// biome-ignore lint/style/useNamingConvention:
GOOGLE_SERVICE_ACCOUNT_EMAIL: string;
readonly GOOGLE_SERVICE_ACCOUNT_EMAIL: string;

/**
* Private key of the Google Cloud service account.
* (`private_key` in the JSON file)
*/
// biome-ignore lint/style/useNamingConvention:
GOOGLE_SERVICE_ACCOUNT_KEY: string;
readonly GOOGLE_SERVICE_ACCOUNT_KEY: string;
}
}

0 comments on commit 2008286

Please sign in to comment.