cloudflare / workers-types

TypeScript type definitions for authoring Cloudflare Workers.
BSD 3-Clause "New" or "Revised" License
359 stars 89 forks source link

forEach function parameter name is wrong, adjust the value order #283

Closed gzlkylin closed 1 year ago

gzlkylin commented 2 years ago

declare class FormData { ... forEach( callback: ( this: This, key: string, value: File | string, parent: FormData ) => void, thisArg?: This ): void; ... } declare class URLSearchParams { ... forEach( callback: ( this: This, key: string, value: File | string, parent: FormData ) => void, thisArg?: This ): void; ... } declare class Headers { ... forEach( callback: ( this: This, key: string, value: File | string, parent: FormData ) => void, thisArg?: This ): void; ... }

key: string, value: File | string => value: File | string, key: string

gzlkylin commented 2 years ago

https://github.com/cloudflare/workers-types/pull/284

mrbbot commented 1 year ago

Closed by #284