Schräge Fehler mit Maschinenschrift:TS2345: Argument vom Typ X ist nicht zuordenbare Parameter vom Typ Y
Wie das Bild zeigt, ist der Fehler:
TS2345: Argument of type 'ErrnoException' is not assignable to parameter of type '(err: ErrnoException) => void'. Type 'ErrnoException' provides no match for the signature '(err: ErrnoException): void'.
Hier wird das ist Code, der den Fehler verursacht:
export const bump = function(cb: ErrnoException){
const {pkg, pkgPath} = syncSetup();
fs.writeFile(pkgPath, JSON.stringify(pkg, null, 2), cb);
};
Jeder weiß, was hier vor sich geht?