bun-discord-bot/globals.d.ts

30 lines
566 B
TypeScript
Raw Normal View History

declare module "bun" {
interface Env {
DISCORD_BOT_TOKEN: string;
BUN_ONLY_CHANNEL_ID: string;
MESSAGE_PREFIX: string;
2024-05-11 19:36:18 +02:00
WOLFRAM_ALPHA: string;
}
}
declare module "@wolfram-alpha/wolfram-alpha-api" {
export default function WolframAlphaAPI(appId: string): WolframAPI;
interface WolframAPI {
getFull(input: string): Promise<WolframResponse>;
}
interface WolframResponse {
pods: WolframPod[];
}
interface WolframPod {
id: string;
subpods: WolframSubpod[];
}
interface WolframSubpod {
plaintext: string;
}
}