josdejong/mathjs

How to access `Unit.isValidAlpha`?

Open

#2,107 创建于 2021年2月15日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (13,832 star) (1,298 fork)batch import
bughelp wantedtypescript

描述

Using TypeScript:

import math from 'mathjs';`

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

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

贡献者指南

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