Closed Barba828 closed 4 months ago
There a few bits to this issue. Its not a bug but everything is as intended. Here some clarifications:
settings.fillFromJson
. But you might not have some time safety you'd like to have. See here: https://www.alphatab.net/docs/reference/settings
// full import with namespace access
import * as alphaTab from '@coderline/alphatab';
const c = new alphaTab.model.Color(255, 0, 0);
// import model import { model } from '@coderline/alphatab'; const c = new model.Color(255, 0, 0);
Hope this helps.
Is there an existing issue for this?
Current Behavior
It works if I write this, but typescript will report an error because the colorValue is actually a
string
, but mainGlyphColor can only accept the typeColor
, and src/model/Color.ts is not exported.Expected Behavior
can use
string
Steps To Reproduce
Link to jsFiddle, CodePen, Project
No response
Found in Version
1.3-alpha
Platform
Web
Environment
Anything else?
No response