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

Typings: Export named types used in structures returned from the api #20

Open
antipoly opened this issue Dec 18, 2024 · 0 comments · May be fixed by #21
Open

Typings: Export named types used in structures returned from the api #20

antipoly opened this issue Dec 18, 2024 · 0 comments · May be fixed by #21

Comments

@antipoly
Copy link

The typings in this package currently aren't exported to be used externally, which means that extracting types from Api methods would work something like:

ReturnType<OpenBlox['Classic{API}']['{Method}']>['data']

In each Api folder, the .types.ts file contains all the named types, but they aren't exported in the index.ts file.
This can easily be fixed by exporting the types in the index.ts file of each Api module folder.

export * from "./~.types";
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 a pull request may close this issue.

1 participant