Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
mehotkhan committed Sep 2, 2024
1 parent 058b964 commit c72314b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
import { DurableObjectNamespace } from "@cloudflare/workers-types";
import { webhookCallback } from "grammy";
import { createBot } from "./bot/bot";
import { InboxDurableObject } from "./bot/inboxDU";
import { AboutPageContent } from "./front/about";
import { HomePageContent } from "./front/home";
import pageLayout from "./front/layout";
import { Environment } from "./types";
import { KVModel } from "./utils/kv-storage";
import { Router } from "./utils/router";
import { convertToPersianNumbers } from "./utils/tools";

// INBOX DURABLE OBJECTS
export { InboxDurableObject };

export interface Environment {
SECRET_TELEGRAM_API_TOKEN: string;
NekonymousKV: KVNamespace;
BOT_INFO: string;
BOT_NAME: string;
APP_SECURE_KEY: string;
INBOX_DO: DurableObjectNamespace;
}

// Initialize a Router instance for handling different routes
const router = new Router();

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export interface Conversation {
/**
* Interface representing the Environment variables used in the bot.
*/

export interface Environment {
SECRET_TELEGRAM_API_TOKEN: string;
NekonymousKV: KVNamespace;
nekonymousr2: R2Bucket;
BOT_INFO: string;
BOT_NAME: string;
APP_SECURE_KEY: string;
Expand Down

0 comments on commit c72314b

Please sign in to comment.