docs: add EnumResolvers (#7353)

This commit is contained in:
Rodry
2022-01-27 09:25:25 +00:00
committed by GitHub
parent 1a6c5ab145
commit 72767a1059

View File

@@ -26,6 +26,9 @@ function unknownKeyStrategy(val) {
throw new Error(`Could not resolve enum value for ${val}`);
}
/**
* Holds a bunch of methods to resolve enum values to readable strings.
*/
class EnumResolvers extends null {
/**
* A string that can be resolved to a {@link ChannelType} enum value. Here are the available types: