Therefore the following code does not work in Typescript:
import chaiBetterShallowDeepEqual from 'chai-better-shallow-deep-equal'; chaiBetterShallowDeepEqual.addType({...});
Have to write it like
import chaiBetterShallowDeepEqual from 'chai-better-shallow-deep-equal'; (chaiBetterShallowDeepEqual as any).addType({...});
Therefore the following code does not work in Typescript:
import chaiBetterShallowDeepEqual from 'chai-better-shallow-deep-equal'; chaiBetterShallowDeepEqual.addType({...});
Have to write it likeimport chaiBetterShallowDeepEqual from 'chai-better-shallow-deep-equal'; (chaiBetterShallowDeepEqual as any).addType({...});