Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export type Config = SetupCallback | SetupConfig;
export class Server {
public passthrough: ResponseHandler;

public handledRequests: (FakeXMLHttpRequest & ExtraRequestData)[];
public passthroughRequests: (FakeXMLHttpRequest & ExtraRequestData)[];
public unhandledRequests: (FakeXMLHttpRequest & ExtraRequestData)[];

constructor(config?: Config);
// HTTP request verbs
public get: RequestHandler;
Expand Down Expand Up @@ -49,7 +53,7 @@ export type ResponseHandler = {
| PromiseLike<ResponseData>;
};

export type ResponseHandlerInstance = ResponseHandler & {
export type ResponseHandlerInstance = ResponseHandler & {
async: boolean;
numberOfCalls: number;
}
Expand Down