Skip to content

Commit bc7a1da

Browse files
committed
style: add parens to lambdas in tests
This is only done to modify tests in some way so that we do not have to wait for a DT maintainer.
1 parent 7d1c5ec commit bc7a1da

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

types/telegram-web-app/telegram-web-app-tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ btn.onClick(() => {
1414
app.close();
1515
});
1616

17-
app.onEvent("viewportChanged", e => {
17+
app.onEvent("viewportChanged", (e) => {
1818
if (e.isStateStable) console.log("Done at", app.viewportHeight);
1919
else console.log("Changing, currently at ", app.viewportHeight);
2020
});
@@ -24,10 +24,10 @@ app.showPopup(
2424
message: "Hello",
2525
buttons: [{ type: "default", text: "Button text", id: "btn_id" }],
2626
},
27-
btn_id => console.log(btn_id),
27+
(btn_id) => console.log(btn_id),
2828
);
2929

30-
app.onEvent("popupClosed", e => {
30+
app.onEvent("popupClosed", (e) => {
3131
console.log(e.button_id);
3232
});
3333

@@ -64,7 +64,7 @@ app.CloudStorage.getKeys((err, keys) => {
6464
}
6565
});
6666

67-
app.requestWriteAccess(success => {
67+
app.requestWriteAccess((success) => {
6868
const test = success; // $ExpectType boolean
6969
});
7070

0 commit comments

Comments
 (0)