Skip to content

Commit 807c647

Browse files
🤖 dprint fmt
1 parent 8f9b644 commit 807c647

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

types/mokapi/http.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export function options(url: string, body?: JSONValue, args?: Args): Response;
113113
* maxRedirects: 2
114114
* });
115115
*/
116-
export function fetch(url: string, opts?: FetchOptions): Promise<Response>
116+
export function fetch(url: string, opts?: FetchOptions): Promise<Response>;
117117

118118
/**
119119
* Options for the {@link fetch} function.
@@ -209,4 +209,4 @@ export interface Response {
209209
* res.json()
210210
*/
211211
json(): JSONValue;
212-
}
212+
}

types/mokapi/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export interface HttpRequest {
164164
readonly operationId: string;
165165

166166
/** Returns a string representing this HttpRequest object. */
167-
toString(): string
167+
toString(): string;
168168
}
169169

170170
/**
@@ -640,4 +640,4 @@ export interface SharedMemory {
640640
* mokapi.log(`Current counter: ${count}`)
641641
* ```
642642
*/
643-
export const shared: SharedMemory;
643+
export const shared: SharedMemory;

types/mokapi/test/mokapi-tests.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import {
1414
LdapSearchResponse,
1515
on,
1616
patch,
17+
shared,
1718
sleep,
1819
SmtpEventHandler,
1920
SmtpEventMessage,
20-
shared
2121
} from "mokapi";
2222

2323
const handler = () => {};
@@ -47,17 +47,19 @@ on("http", handler, {});
4747
on("http", handler, { tags: { foo: "bar" } });
4848
on("http", handler, { track: true });
4949
on("http", async () => {});
50-
on("http", (request) => { request.querystring });
50+
on("http", (request) => {
51+
request.querystring;
52+
});
5153
on("http", (request, response) => {
5254
const s = request.toString();
5355
const url = request.url.toString();
5456

5557
response.headers = {
5658
"Content-Type": "application/json",
57-
}
59+
};
5860
response.headers["Access-Control-Allow-Origin"] = "*";
5961
response.headers["foo"] = { bar: 123 };
60-
})
62+
});
6163

6264
// @ts-expect-error
6365
every(12, () => {});

0 commit comments

Comments
 (0)