DefinitelyTyped/types/ws
Brent Thomson 3883c358b8
Server.shouldHandle can return boolean promise (#45760)
If you're doing anything interesting within `Server.shouldHandle` it's probably going to involve database queries, crypto hashing, or other features that are generally provided asynchronously. Changing the signature to allow `boolean | Promise<boolean>` fixes the compiler error that occurs if you attempt to assign an async function to `shouldHandle` (async functions must return promises, but then the function signature doesn't match).
2020-06-29 04:49:47 -04:00
..
index.d.ts
tsconfig.json
tslint.json
ws-tests.ts