TypstDocumentation

type

Determine a value's type.

Returns the name of the value's type.

Example

#type(12) \
#type(14.7) \
#type("hello") \
#type(none) \
#type([Hi]) \
#type(x => x + 1)
Preview

Parameters
Question mark

type(
any
) -> string

value
any
RequiredPositional
Question mark

The value whose type's to determine.