The following code gives an error in typescript strict mode:
const hammerTap = new Hammer(nativeElement,
{
recognizers: [
[Hammer.Tap, { taps: 4 }]
]
});
const tap$ = fromEvent(hammerTap, 'tap').pipe(share());
Argument of type 'HammerManager' is not assignable to parameter of type 'FromEventTarget<{}>'. Type 'HammerManager' is not assignable to type 'JQueryStyleEventEmitter'. Types of property 'on' are incompatible. Type '(events: string, handler: HammerListener) => void' is not assignable to type '(eventName: string, handler: Function) => void'. Types of parameters 'handler' and 'handler' are incompatible. Type 'Function' is not assignable to type 'HammerListener'. Type 'Function' provides no match for the signature '(event: HammerInput): void'.