josdejong/mathjs

How to access `Unit.isValidAlpha`?

Offen

#2.107 geöffnet am 15.02.2021

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.314 Forks)batch import
bughelp wantedtypescript

Repository-Metriken

Stars
 (15.065 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Using TypeScript:

import math from 'mathjs';`

// @ts-expect-error
math.Unit.isValidAlpha = () => {
	return true;
};

Throws Cannot read property \'Unit\' of undefined.

Contributor Guide