Type ‘() => void’ is not assignable to type ‘() => {}’

In your definition private _noop: () => {}; _noop is typed as a function returning an object.

When you assign it as this._noop = () => { }; the function you are trying to assign to _noop is of type () => void.

If you wanted _noop to be function returning nothing then type it as:

private _noop: () => void;

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)