josdejong / josdejong/mathjs

How to access `Unit.isValidAlpha`?

Open
#2,107 2 comments 0 reactions 0 assignees View on GitHub
bug help wanted typescript
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Using TypeScript:

```ts
import math from 'mathjs';`

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

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.