Tomasz Kulik

Results 6 comments of Tomasz Kulik
trafficstars

I have a similar problem. The thing is that JSDoc was designed to support OO JavaScript and if you use more functional approach it's quite hard to document your code...

It would help a lot, but it will not solve all the problems. In the example given by @jedwards1211 the filter function: ```filter: (src, dest, srcStat, destStat) => srcStat.isDirectory() ||...

> I can imagine a solution where the filter function returns a special value I think filter should return a boolean (or a Promise resolving to a boolean). This is...

The same is true when using Proxies. It's enough to wrap an element in a Proxy to get this error.

Hi, I have the same problem. ResizeObserver throws that error also when it gets a **Proxy** object. Even though it proxies an object of type Element. Table component from @ant-design/pro-layout...

Oh, it's actually a problem of `resize-observer-polyfill`, not the `resize-observer` itself: https://github.com/que-etc/resize-observer-polyfill/issues/95 To solve it, simply put a `div` directly inside the `ResizeObserver` and place the rest inside the `div`.