Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(shared): enums transpilation from typings #319

Merged
merged 3 commits into from
Jun 30, 2024

Conversation

xxshady
Copy link
Contributor

@xxshady xxshady commented Jun 24, 2024

added enums transpilation from typings (alt-shared, alt-client, alt-server)
implementation was copy-pasted from JS bindings, except one thing: JS bindings are called in bootstrap, but enums are evaluated in their own module and then exports are inserted into alt-shared so it's possible to import enums from root without any additional namespace (like Utils):

import { RadioStation, BaseObjectType, Locale } from "alt-shared";

// same for alt-client and alt-server
import { RadioStation, BaseObjectType, Locale } from "alt-client";
import { RadioStation, BaseObjectType, Locale } from "alt-server";

See also: altmp/altv-types#319

@xLuxy xLuxy merged commit a9f3a8d into altmp:dev Jun 30, 2024
3 checks passed
Doxoh added a commit that referenced this pull request Aug 9, 2024
Doxoh added a commit that referenced this pull request Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants