Skip to main content

@rbxts/expect > VariableData > type

VariableData.type property

The type of this variable, as a string.

Signature:

type?: string;

Remarks

If undefined, it will be set automatically during build time to the value of this variable, utilizing the macro typeOf.

Example

expect(5).to.be.defined(); // "number" is the type