Comments (5)
Now implemented in v0.15.0: table or array types, whenever known to be in a "read" position, are declared in Table form.
For more details, see the Changelog/Readme.
from typed-factorio.
This could be possible since typescript 4.3 with setter overloading. Certain other attributes already have setter overloading (defined manually), but this could be done automatically in these cases too (stay tuned)!
from typed-factorio.
Thanks for this change - it's much nicer to use now!
One small note: I think BoundingBoxTable
and BoundingBoxArray
also needs the left_top
and right_bottom
fields marked as PositionTable
instead of Position
.
from typed-factorio.
One small note: I think
BoundingBoxTable
andBoundingBoxArray
also needs theleft_top
andright_bottom
fields marked asPositionTable
instead ofPosition
.
See BoundingBoxRead
for those situations. A BoundingBox specification can still be either table or array.
from typed-factorio.
That helps, thanks!
from typed-factorio.
Related Issues (20)
- reading `LuaControl.force` should only return `LuaForce`, not `LuaForce | string` HOT 2
- Require of different mod with Lua snippet (Lua API global Variable Viewer (gvv)) HOT 2
- Request: Provide strong typing of numeric Builtin Types HOT 7
- node_modules/typed-factorio/generated/classes.d.ts(261,3): error TS2304: Cannot find name 'https'. HOT 9
- Subtypes for `LuaEntity` that follow the "Can only be used if this is <Prototype>" documentation HOT 3
- Cannot use table.deepcopy imported from util HOT 2
- A question about Icons HOT 1
- Make a `create-typed-factorio` package HOT 3
- Proto-types? HOT 2
- CraftingMachinePrototype::fluid_boxes needs manual type def HOT 2
- Alternative to `satisfies` HOT 1
- Typechecked CustomEventName HOT 2
- Add runtime equivalent of PrototypeMap HOT 6
- ColorArray definition is incorrect HOT 1
- Add definition for `global` variable HOT 1
- `get_insertable_count` has incorrect return type HOT 1
- localized_name and localized_description are named incorrectly in settings HOT 1
- Add `types` declaration to package.json HOT 4
- Documentation links to `Events.html` instead of `events.html` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typed-factorio.