neutralinojs / neutralino.js

JavaScript API for Neutralinojs
https://neutralino.js.org/docs/api/overview
MIT License
237 stars 47 forks source link

:bug: Fix wrong enum values in enums.ts #118

Closed CosmoMyzrailGorynych closed 1 month ago

CosmoMyzrailGorynych commented 2 months ago

Right now type definitions export several enums that don't have their values initialized, which leads them to have values 0, 1, 2, and so on, when in fact they have string values. (As per docs and factual values.) This leads to typescript errors.

изображение изображение

This PR corrects the enums.ts file so that each enum value has a corresponding correct string value.

изображение