Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Runtime Docs Version 2.0.7

## ItemWithQualityID :: union

An item prototype with optional quality specification. Can be specified in one of four ways.

#### Union members

LuaItemStack | The item stack. Both prototype and quality of the item stack will be used.
LuaItemPrototype | The item prototype. Normal quality will be used.
string | The prototype name. Normal quality will be used.
ItemIDAndQualityIDPair | A table of entity prototype and quality.