Open Bug 1966462 Opened 10 months ago Updated 10 months ago

Make nsIVariant more friendly with Typescript

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(Not tracked)

People

(Reporter: jteow, Unassigned)

References

(Blocks 1 open bug)

Details

nsIVariant values appear to be automatically converted to JavaScript primitive types at runtime.

However, TypeScript does not recognize this behaviour and assumes the values are still nsIVariant. As a result, it raises type errors when JavaScript code uses methods or properties appropriate for the unwrapped primitive types.

You need to log in before you can comment on or make changes to this bug.