@rbxts/expect > ActualPlaceholder > type
ActualPlaceholder.type property
A string representing the type of the actual value in an expect() statement.
Signature:
type: string;
Remarks
By default, this value gets set automatically via the macro typeOf.
But you can optionally override this for custom types via ExpectMessageBuilder.actualType().
Example
Let's say we were checking if a value was an array:
new ExpectMessageBuilder(
`Expected ${place.actual.value} (${place.actual.type}) to be an array`
);
We'd get output like:
Expected '5' (number) to be an array