Skip to content

Commit ac59cc4

Browse files
committed
Fix comments on EnumType
1 parent b30658e commit ac59cc4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

types/enum.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@ export default class EnumType<E> extends AbstractType<E> {
3535
static get _value() {
3636
return 0x55
3737
}
38-
/**
39-
* The list of possible values
40-
*/
38+
/** The list of possible values */
4139
readonly values: E[]
42-
private readonly type: Type<E>
40+
readonly type: Type<E>
4341
private cachedValueIndices: Map<string, number> | undefined
4442
/**
45-
* @param type The type of each element in the tuple
43+
* @param type The type of each value of the enum
4644
* @param values The possible distinct values.
4745
* Cannot contain more than 255 values.
4846
* @throws If any value cannot be serialized by `type`

0 commit comments

Comments
 (0)