We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b30658e commit ac59cc4Copy full SHA for ac59cc4
types/enum.ts
@@ -35,14 +35,12 @@ export default class EnumType<E> extends AbstractType<E> {
35
static get _value() {
36
return 0x55
37
}
38
- /**
39
- * The list of possible values
40
- */
+ /** The list of possible values */
41
readonly values: E[]
42
- private readonly type: Type<E>
+ readonly type: Type<E>
43
private cachedValueIndices: Map<string, number> | undefined
44
/**
45
- * @param type The type of each element in the tuple
+ * @param type The type of each value of the enum
46
* @param values The possible distinct values.
47
* Cannot contain more than 255 values.
48
* @throws If any value cannot be serialized by `type`
0 commit comments