Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
types(Partials): add toString() method to supported Partials (#9835)
* types(Partials): add toString() method to supported Partials - includes `PartialDMChannel`, `PartialGuildMember` and `PartialUser` - does not include - `PartialMessage`, since `<PartialMessage>.content` is always null - `PartialMessageReaction`, since `MessageReaction` has no `toString()` method - `PartialThreadMember`, since `ThreadMember` has no `toString()` method * types(Partials): replace type of `toString()` methods with return type * test(Partials): add tests * types(Partialize): refactor Partialize * test(PartialThreadMember): fix typo * types(Partials): clean up unnecessary type overrides * test(Partials): add tests for <Partials>.partial property --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
- Loading branch information
1 parent
1fe7247
commit 7422d9f
Showing
2 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters