Skip to content

Commit

Permalink
fix(shared, compat): Expose all enums
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Sep 20, 2024
1 parent 74c82a8 commit f52687d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shared/js/compatibility/enums.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// <reference path="../../../types/shared/index.d.ts" />
/// <reference path="../../../types/server/index.d.ts" />
/// <reference path="../../../types/client/index.d.ts" />
// import * as alt from "@altv/shared";

for (const enumName in alt.Enums) {
cppBindings.registerCompatibilityExport(enumName, alt.Enums[enumName]);
}

0 comments on commit f52687d

Please sign in to comment.