Typed Module

typed.check(value, ...: string): bool

Checks if the value is of any of the types in the rest of the arguments

typed.check_raw(value, ...: string): bool

Checks if the value is of any of the types in the rest of the arguments. The meta-field __type will not have an effect.

typed.int(value): bool

Checks if the value is of type int.

typed.float(value): bool

Checks if the value is of type float.

typed.bool(value): bool

Checks if the value is of type bool.

typed.char(value): bool

Checks if the value is of type char.

typed.string(value): bool

Checks if the value is of type string.

typed.vector(value): bool

Checks if the value is of type vector.

typed.object(value): bool

Checks if the value is of type object.

typed.object_raw(value): bool

Checks if the value is of type object. The meta-field __type will not have an effect.

typed.function(value): bool

Checks if the value is of type fn.

typed.numeric(value): bool

Checks if the value is of type int or float.

typed.iterable(value): bool

Checks if the value is of type string, vector or object.

typed.options(value, ...): bool

Checks if the value is equal to any of the values in the rest of the arguments.

typed.some(value): bool

Checks if the value is not null. Any usual falsy value except null of course return true