Skip to main content

@rbxts/expect > Assertion > enum_type

Assertion.enum_type property

Helper property for getting the mappings for a value that has passed an check.

Signature:

enum_type?: Record<number, string>;

Remarks

Is set by passing.

Can be used in other expect methods to map the "actual" value to its enum representation; typically for more descriptive errors.