Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(src/env.d.ts): declare envs as readonly #52

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}