- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.4k
Closed
Description
I am using cypress with typescript. I was looking at the ServerOptions type:
interface ServerOptions {
    delay: number
    method: HttpMethod
    status: number
    headers: object
    response: any
    onRequest(...args: any[]): void
    onResponse(...args: any[]): void
    onAbort(...args: any[]): void
    enable: boolean
    force404: boolean
    urlMatchingOptions: object
    whitelist(xhr: Request): void
    onAnyRequest(route: RouteOptions, proxy: any): void
    onAnyResponse(route: RouteOptions, proxy: any): void
    onAnyAbort(route: RouteOptions, proxy: any): void
  }More specifically:
whitelist(xhr: Request): voidIs this type correct? I would expect this type to be:
whitelist(xhr: XMLHttpRequest): voidThe xhr passed to the callback certainly behaves like an XMLHttpRequest.
Metadata
Metadata
Assignees
Labels
No labels