feat(cli): update to TypeScript 4.8 (#15064)

This commit is contained in:
Kitson Kelly 2022-09-20 07:00:01 +10:00 committed by GitHub
parent 79aee3668d
commit 73e89844ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 9863 additions and 5280 deletions

View file

@ -1214,7 +1214,9 @@ Deno.test(
async function client() {
const socket = new WebSocket(`ws://${hostname}:${port}/`);
socket.onopen = () => socket.send("bla bla");
const { data } = await new Promise((res) => socket.onmessage = res);
const { data } = await new Promise<MessageEvent<string>>((res) =>
socket.onmessage = res
);
assertStrictEquals(data, "bla bla");
socket.close();
}