Skip to content

Commit 6bc6d73

Browse files
docs(cf): updated the example
1 parent 4f3c171 commit 6bc6d73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cloudflare/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ simple = { limit = 100, period = 60 }
4646
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.
4747

4848
```ts
49-
import { cloudflareRateLimiter, RateLimitBinding } from "@hono-rate-limiter/cloudflare";
49+
import { cloudflareRateLimiter } from "@hono-rate-limiter/cloudflare";
5050

5151
type AppType = {
5252
Variables: {
5353
rateLimit: boolean;
5454
};
5555
Bindings: {
56-
RATE_LIMITER: RateLimitBinding;
56+
RATE_LIMITER: RateLimit;
5757
};
5858
};
5959

0 commit comments

Comments
 (0)