Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

refactor: cleanup extended interface #49

Closed
wants to merge 1 commit into from

Conversation

ckohen
Copy link
Member

@ckohen ckohen commented Oct 28, 2021

Please describe the changes this PR makes and why it should be merged:

Removes the overrides for the map methods that just directly called super.x in favor of more verbose jsdoc (which appears to be the only reason for these overrides).

Also separates the constructor into the typescript only interface so that there isn't a useless constructor that overwrites itself when useDefineForClassFields is set true

Status and versioning classification:

  • Code changes have been tested, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

/**
* A Map with additional utility methods. This is used throughout discord.js rather than Arrays for anything that has
* an ID, for significantly improved performance and ease-of-use.
* @extends {Map}
* @property {number} size - The amount of elements in this collection.
*/
/* eslint-disable-next-line no-redeclare */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disable this rule and use the typescript-eslint equivalent instead (or don't)

@iCrawl iCrawl closed this in aec01c6 Oct 29, 2021
@ckohen ckohen deleted the cleanup-extends branch October 29, 2021 03:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants