Function: mockPcall()
ts
function mockPcall(callable: (...args: never[]) => unknown, ...args: never[]): [boolean, unknown];Mock lua pcall global.
Parameters
| Parameter | Type | Description |
|---|---|---|
callable | (...args: never[]) => unknown | Function to call protected. |
...args | never[] | Arguments forwarded to the callable. |
Returns
[boolean, unknown]
Whether the call completed, paired with its result or the error message.