Skip to content

Commit

Permalink
docs(cf): updated the example
Browse files Browse the repository at this point in the history
  • Loading branch information
MathurAditya724 committed Sep 2, 2024
1 parent 4f3c171 commit 6bc6d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cloudflare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};

Expand Down

0 comments on commit 6bc6d73

Please sign in to comment.