Skip to content

Commit 49a8f2e

Browse files
committed
chore: format code
1 parent 12c9845 commit 49a8f2e

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

types/mokapi/file.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ export function writeString(path: string, s: string): void;
4747
* appendString('data.json', ' World')
4848
* }
4949
*/
50-
export function appendString(path: string, s: string): void;
50+
export function appendString(path: string, s: string): void;

types/mokapi/http.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,4 @@ export interface Response {
209209
* res.json()
210210
*/
211211
json(): JSONValue;
212-
}
212+
}

types/mokapi/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import "./mustache";
1010
import "./yaml";
1111
import "./encoding";
1212
import "./mail";
13-
import "./file"
13+
import "./file";
1414

1515
/**
1616
* Attaches an event handler for the given event.
@@ -202,7 +202,7 @@ export interface HttpResponse {
202202
* }
203203
* })
204204
* }
205-
* */
205+
*/
206206
rebuild: (statusCode?: number, contentType?: string) => void;
207207
}
208208

@@ -678,4 +678,4 @@ export interface SharedMemory {
678678
* mokapi.log(`Current counter: ${count}`)
679679
* ```
680680
*/
681-
export const shared: SharedMemory;
681+
export const shared: SharedMemory;

types/mokapi/test/file-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { read, writeString, appendString } from "mokapi/file";
1+
import { appendString, read, writeString } from "mokapi/file";
22

33
// @ts-expect-error
4-
read(123)
4+
read(123);
55
read("data.json");
66
// @ts-expect-error
77
const i: number = read("data.json");

types/mokapi/test/mokapi-tests.ts

Lines changed: 3 additions & 3 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 = () => {};
@@ -64,9 +64,9 @@ on("http", (request, response) => {
6464
response.headers["Access-Control-Allow-Origin"] = "*";
6565
response.headers["foo"] = { bar: 123 };
6666

67-
response.rebuild(200, 'application/json');
67+
response.rebuild(200, "application/json");
6868
// @ts-expect-error
69-
response.rebuild('200', 'application/json');
69+
response.rebuild("200", "application/json");
7070
// @ts-expect-error
7171
response.rebuild(200, {});
7272
});

0 commit comments

Comments
 (0)