You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve altvEnums feature by adding ability (it will be a separate option enhancedAltvEnums for backward compatibility) to use enums directly from alt-* modules, as with default typescript compiler (tsc):
- import { RadioStation } from 'altv-enums'+ import { RadioStation } from 'alt-server'
To allow such code i will add transpilation of enums to js from your own local node_modules/@altv/types-* on initial build of code
(types-server, types-client, types-shared)
The text was updated successfully, but these errors were encountered:
One problem which I don't know (or should I?) how to solve is when user updates altv-types regardless of re-running esbuild watch build script, this can cause runtime errors because enums will only be transpiled on initial build
Improve
altvEnums
feature by adding ability (it will be a separate optionenhancedAltvEnums
for backward compatibility) to use enums directly from alt-* modules, as with default typescript compiler (tsc):To allow such code i will add transpilation of enums to js from your own local
node_modules/@altv/types-*
on initial build of code(types-server, types-client, types-shared)
The text was updated successfully, but these errors were encountered: