From 6bc6d73f8120ad5d23114697d044aa3fdab46591 Mon Sep 17 00:00:00 2001 From: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com> Date: Mon, 2 Sep 2024 08:32:40 +0530 Subject: [PATCH] docs(cf): updated the example --- packages/cloudflare/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cloudflare/README.md b/packages/cloudflare/README.md index d0d7cd8..77914b8 100644 --- a/packages/cloudflare/README.md +++ b/packages/cloudflare/README.md @@ -46,14 +46,14 @@ simple = { limit = 100, period = 60 } For more info on setting up your Workers Rate Limiting API you can check out [Rate Limiting Guide](https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/) on cloudflare. ```ts -import { cloudflareRateLimiter, RateLimitBinding } from "@hono-rate-limiter/cloudflare"; +import { cloudflareRateLimiter } from "@hono-rate-limiter/cloudflare"; type AppType = { Variables: { rateLimit: boolean; }; Bindings: { - RATE_LIMITER: RateLimitBinding; + RATE_LIMITER: RateLimit; }; };