Skip to content

Commit f8ebf3a

Browse files
committed
fix: types
1 parent 32fc7ab commit f8ebf3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lunarclient/discord-hono",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "This module enables you to easily build a Discord Bot that runs on Cloudflare workers",
55
"author": "Luis (https://github.com/luisfun)",
66
"homepage": "https://github.com/luisfun/discord-hono",

src/discord-hono.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ abstract class DiscordHonoBase<E extends Env> {
248248
* @returns Context object with bindings and Discord environment
249249
*/
250250
export const getBindings = <E extends Env>() => {
251-
const typedStoredEnv = storedEnv as E | undefined
251+
const typedStoredEnv = storedEnv as E["Bindings"] | undefined
252252
if (!typedStoredEnv) {
253253
throw new Error('getBindings() called before any handler received environment bindings');
254254
}

0 commit comments

Comments
 (0)