https://github.com/DefinitelyTyped/DefinitelyTyped/blob/1bfb3a01af9c94ad7c913a0f6359b3bfb8205602/types/plotly.js/index.d.ts#L3190 `fgopacity` is used as a number and described as a number in the documentation, but is recorded as a string. `fgopacity?: number;` seems to make more sense to me.