diff --git a/package.json b/package.json index 11b1100..4f7bb78 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "pg-connection-string": "2.5.0" }, "scripts": { - "check": "tsc --noEmit export/index.ts", + "check": "tsc --noEmit", "build": "./build.sh", "buildDebug": "./build.sh debug", "watch": "./build.sh watch", diff --git a/shims/net/index.ts b/shims/net/index.ts index c1cc7a2..f8055f8 100644 --- a/shims/net/index.ts +++ b/shims/net/index.ts @@ -417,7 +417,7 @@ export class Socket extends EventEmitter { } catch (err) { debug && log('new WebSocket() failed'); - // @ts-expect-error -- unknown Vercel-specific object + // @ts-ignore -- unknown Vercel-specific object this.ws = new __unstable_WebSocket(wsAddrFull); configureWebSocket(this.ws!); } @@ -431,12 +431,12 @@ export class Socket extends EventEmitter { fetch(fetchAddrFull, { headers: { Upgrade: 'websocket' } }) .then((resp) => { - // @ts-ignore unknown Cloudflare-specific property + // @ts-ignore -- unknown Cloudflare-specific property this.ws = resp.webSocket; if (this.ws == null) throw err; // deliberate loose equality - // @ts-expect-error node types don't include this method on Cloudflare - this.ws.accept!(); // if we're here, then there's an accept method + // @ts-ignore -- unknown Cloudflare-specific method + this.ws.accept!(); configureWebSocket(this.ws, true); debug && log('Cloudflare WebSocket opened'); })