Skip to content

Commit

Permalink
Address @stefanpenner's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Dec 20, 2017
1 parent 4401dbe commit 864bd1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Expand Up @@ -21,7 +21,8 @@ export class Server {

export type RequestHandler = (
urlExpression: string,
response: ResponseHandler
response: ResponseHandler,
async?: boolean
) => void;

export type ResponseData = [number, { [k: string]: string }, string];
Expand All @@ -31,6 +32,6 @@ interface ExtraRequestData {
}
export type ResponseHandler = (
request: FakeXMLHttpRequest | ExtraRequestData
) => ResponseData;
) => ResponseData | PromiseLike<ResponseData>;

export default Server;

0 comments on commit 864bd1b

Please sign in to comment.