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

Add new EFI features to the typescript definition file #4

Open
OtterCodes101 opened this issue Nov 22, 2024 · 14 comments
Open

Add new EFI features to the typescript definition file #4

OtterCodes101 opened this issue Nov 22, 2024 · 14 comments
Assignees

Comments

@OtterCodes101
Copy link
Member

a bunch of new EFI features need to be added to the definition file so it can properly use intellisense

@OtterCodes101 OtterCodes101 changed the title Add reflection classes to ModAPI.d.ts Add new EFI features to the typescript definition file Nov 22, 2024
@OtterCodes101
Copy link
Member Author

oh we also need to update the API docs iirc

@OtterCodes101
Copy link
Member Author

nvm the docs are in the EFI repo but it'd still be helpful to link them there

@OtterCodes101
Copy link
Member Author

or we could just move those to eaglerforge.github.io

@radmanplays
Copy link
Member

or we could just move those to eaglerforge.github.io

I agree

@OtterCodes101
Copy link
Member Author

yeah i think it'd be better to have the docs just at eaglerforge.github.io

@OtterCodes101
Copy link
Member Author

we should also add descriptions to the d.ts documentation

@ZXMushroom63
Copy link
Member

a bunch of new EFI features need to be added to the definition file so it can properly use intellisense

about that...........
EFI's structure is a little bit different from legacy EaglerForge, as instead of having code to manually expose each property, its all based on directly interfacing with eaglercraft at runtime. we'd pretty much need to convert all of minecraft into a .d.ts file (which I've got no clue how to use)

After I'm done doing custom meshes and whatnot I can try writing a script to traverse the modapi object and generate a .d.ts from it, but it's still not gonna be fun.

@STPv22
Copy link

STPv22 commented Nov 25, 2024

Is there any way I can still make ts mods with the new API?

@ZXMushroom63
Copy link
Member

Is there any way I can still make ts mods with the new API?

yes, you just wont get autocomplete features

@OtterCodes101
Copy link
Member Author

typescript mods are better for organization as you can have stuff in different files :3 thats why I would recommend using it over just writing a .js file

@STPv22
Copy link

STPv22 commented Nov 26, 2024

declare var ModAPI: any, right?

@STPv22
Copy link

STPv22 commented Nov 26, 2024

typescript mods are better for organization as you can have stuff in different files :3 thats why I would recommend using it over just writing a .js file

ye that's why want to try it :3

@OtterCodes101
Copy link
Member Author

declare var ModAPI: any, right?

pretty sure that would work too

@OtterCodes101
Copy link
Member Author

try it out

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

No branches or pull requests

4 participants