MZ what data types does this accept?

hi I've been trying something with this but I keep getting a passable error where it doesn't say I have an error it just doesn't do what I want. I think the error lies here;

JavaScript:
$gameParty.loseItem(1 , 2);

I think it accepts two integers, am I correct in assuming this?

Of course the error could be else-where but as I cant be 100% sure I am using the correct data type I don't want to move on testing other things till I'm sure this isn't the problem.

id appreciate any answers~ thanks in advance.
it takes an item object, and an integer: the item to lose, and how many.
it takes an item object, and an integer: the item to lose, and how many.
lol im so dumb, thanks very much!

(⁄ ⁄•⁄ω⁄•⁄ ⁄)
Just for the sake of completion, here is what the call should look like:
JavaScript:
$gameParty.loseItem($dataItems[1], 2);
Supposing it's an item, and not a weapon or armor.
Just for the sake of completion, here is what the call should look like:
JavaScript:
$gameParty.loseItem($dataItems[1], 2);
Supposing it's an item, and not a weapon or armor.
thanks for clarifying!
it takes an item object, and an integer: the item to lose, and how many.

after some testing I found that this was actually the cause of the error, thanks so much.~

Original thread: https://forums.rpgmakerweb.com/threads/what-data-types-does-this-accept.148377/