Amp\Internal\createTypeError

functioncreateTypeError(string[]$expected,mixed$given):TypeError

Creates a TypeError with a standardized error message.

Type Parameter Description Default Value
string[] $expected Expected types. none
mixed $given Given value. none