Skip to content

Broken enums? #48

@roxaloxa

Description

@roxaloxa

I'm poking at the enums for the first time and I currently have:

const Enums = require('the-traveler/build/type-definitions');
console.log(Enums);

and the output is:

{
  "App": {},
  "User": {},
  "Content": {},
  "Forum": {},
  "GroupV2": {},
  "Destiny2": {},
  "CommunityContent": {},
  "Trending": {},
  "Fireteam": {}
}

Naturally that seems wrong, so I dug into the package and it looks like there are interfaces.d.ts files (https://github.com/alexanderwe/the-traveler/blob/master/src/type-definitions/destiny2/interfaces.ts for example) that are full of definitions sitting next to empty interfaces.js files, which are the ones that actually get used. These are meant to be the generated files right? I'm not familiar with TypeScript but this is wrong yeah?

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