Igor Strebz

Results 99 comments of Igor Strebz

I do believe the following typings can be used: ```ts declare module 'abortcontroller-polyfill/dist/cjs-ponyfill' { /** A controller object that allows you to abort one or more DOM requests as and...

http://api.urbandictionary.com/v0/define?term=github

https://github.com/zwb-ict/node-zstd works with Buffers and is a Node.js C++ addon. There is also a fork `cppzst` with node 14 support.

There are at least two tools. The first one checks that some code in typescript passes the type check. The other allows to write assertions about types itself, like, assert...

Typescript definitions can be found in [`index.d.ts`](https://github.com/benjamine/jsondiffpatch/blob/master/src/index.d.ts), so you just `import { diff } from 'jsondiffpatch'` as in pure javascript examples.

One could write a helper function like ```ts logger.debugLazy = (expensiveComputation: () => unknown) => { if (log.isLogLevelEnabled('debug')) log.debug(expensiveComputation()) } // types.d.ts interface Pino { debugLazy: (expensiveComputation: () => unknown)...

@zbjornson there are some failing branches in the CI, is it ok?

I encounter the same issue in jest while using `fc.assert`. Also, stack traces are cut, which is a bit inconvenient.

Should warn that jest replaces the global URL with its own implementation, so maybe it's a good idea to leave it as is. Related issue: https://github.com/sindresorhus/got/issues/1414#issuecomment-678453036