Skip to content

Commit 2658ace

Browse files
committed
remove algorithm definition
1 parent 45bf757 commit 2658ace

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/function/v2.ts

-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ export type { Context } from '@netlify/serverless-functions-api'
33
type Path = `/${string}`
44
type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
55
type CronSchedule = string
6-
type RateLimitAlgorithm = 'sliding_window'
76
type RateLimitAggregator = 'domain' | 'ip'
87
type RateLimitAction = 'rate_limit' | 'rewrite'
98

109
interface RateLimitConfig {
1110
action?: RateLimitAction
1211
aggregateBy?: RateLimitAggregator | RateLimitAggregator[]
13-
algorithm?: RateLimitAlgorithm
1412
to?: string
1513
windowSize: number
1614
}

0 commit comments

Comments
 (0)