Amp\Internal\createTypeError

function createTypeError(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