Closed Stargateur closed 3 months ago
data:extend({ {
type = "recipe",
name = "foo",
enabled = "false",
category = "advanced-crafting",
ingredients = { },
result = "foo"
} --[[@as data.RecipePrototype]]
})
LuaLS is just bad at narrowing.
not perfect but I take it "Cannot assign string
to boolean?
." oops, nice ! I start to love this vscode extension.
witch is incorrect https://lua-api.factorio.com/latest/prototypes/RecipePrototype.html#category https://wiki.factorio.com/Data.raw#recipe-category