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 (1,298 forks)batch import
bughelp wantedtypescript

Repository metrics

Stars
 (13,832 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Using TypeScript:

import math from 'mathjs';`

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

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

Contributor guide