TypeChecking
Noir.TypeChecking: table
A module of Noir for checking if a value is of the correct type.
This normally would be a library, but libraries need to use this and libraries are meant to be independent of each other.
Noir.TypeChecking._DummyClass: NoirClass
A dummy class for checking if a value is a class or not.
Used internally.
Raises an error if the value is not any of the provided types.
This has basic support for classes. It will check if the provided value is a Noir class if needed, but it will not check if it's the right class.
Parameters
origin
: string - The location of the thing (method, function, etc) that called this so the user can find out where something went wrongparameterName
: string - The name of the parameter that is being type checkedvalue
: any...
: NoirTypeCheckingType
Raises an error if any of the provided values are not any of the provided types.
Parameters
origin
: string - The location of the thing (method, function, etc) that called this so the user can find out where something went wrongparameterName
: string - The name of the parameter that is being type checkedvalues
: table<integer, any>...
: NoirTypeCheckingType
Format required types for an error message.
Used internally.
Parameters
types
: table<integer, NoirTypeCheckingType>
Returns
string
Last updated