Skip to content

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

@antipoly

Description

@antipoly

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";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions