josdejong/mathjs

How to access `Unit.isValidAlpha`?

Open

#2,107 opened on Feb 15, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (13,832 stars) (1,298 forks)batch import
bughelp wantedtypescript

Description

Using TypeScript:

import math from 'mathjs';`

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

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

Contributor guide

How to access `Unit.isValidAlpha`? · josdejong/mathjs#2107 | Good First Issue