typed-factorio 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
package/Changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v1.5.1
2
+
3
+ - Added old `Read` types as deprecated type aliases of new types; to help with migration.
4
+
1
5
  # v1.5.0
2
6
 
3
7
  ### BREAKING
@@ -357,6 +357,11 @@ interface ScriptAreaWrite {
357
357
  readonly id: uint
358
358
  }
359
359
 
360
+ /**
361
+ * @deprecated Use {@link ScriptArea} instead
362
+ */
363
+ type ScriptAreaRead = ScriptArea
364
+
360
365
  /**
361
366
  * A position defined using the map editor.
362
367
  * @see ScriptPositionWrite
@@ -380,6 +385,11 @@ interface ScriptPositionWrite {
380
385
  readonly id: uint
381
386
  }
382
387
 
388
+ /**
389
+ * @deprecated Use {@link ScriptPosition} instead
390
+ */
391
+ type ScriptPositionRead = ScriptPosition
392
+
383
393
  /**
384
394
  * Red, green, blue and alpha values, all in range [0, 1] or all in range [0, 255] if any value is > 1. All values here are optional. Color channels default to `0`, the alpha channel defaults to `1`.
385
395
  *
@@ -1353,6 +1363,11 @@ interface BlueprintEntityWrite {
1353
1363
  readonly station?: string
1354
1364
  }
1355
1365
 
1366
+ /**
1367
+ * @deprecated Use {@link BlueprintEntity} instead
1368
+ */
1369
+ type BlueprintEntityRead = BlueprintEntity
1370
+
1356
1371
  /**
1357
1372
  * @see TileWrite
1358
1373
  * @see {@link https://lua-api.factorio.com/latest/Concepts.html#Tile Online documentation}
@@ -1383,6 +1398,11 @@ interface TileWrite {
1383
1398
  readonly name: string
1384
1399
  }
1385
1400
 
1401
+ /**
1402
+ * @deprecated Use {@link Tile} instead
1403
+ */
1404
+ type TileRead = Tile
1405
+
1386
1406
  interface Fluid {
1387
1407
  /**
1388
1408
  * Fluid prototype name of the fluid.
@@ -1947,6 +1967,11 @@ interface AutoplaceControlWrite {
1947
1967
  readonly richness: MapGenSize
1948
1968
  }
1949
1969
 
1970
+ /**
1971
+ * @deprecated Use {@link AutoplaceControl} instead
1972
+ */
1973
+ type AutoplaceControlRead = AutoplaceControl
1974
+
1950
1975
  /**
1951
1976
  * @see AutoplaceSettingsWrite
1952
1977
  * @see {@link https://lua-api.factorio.com/latest/Concepts.html#AutoplaceSettings Online documentation}
@@ -1971,6 +1996,11 @@ interface AutoplaceSettingsWrite {
1971
1996
  readonly settings: Record<string, AutoplaceControlWrite>
1972
1997
  }
1973
1998
 
1999
+ /**
2000
+ * @deprecated Use {@link AutoplaceSettings} instead
2001
+ */
2002
+ type AutoplaceSettingsRead = AutoplaceSettings
2003
+
1974
2004
  /**
1975
2005
  * @see CliffPlacementSettingsWrite
1976
2006
  * @see {@link https://lua-api.factorio.com/latest/Concepts.html#CliffPlacementSettings Online documentation}
@@ -2017,6 +2047,11 @@ interface CliffPlacementSettingsWrite {
2017
2047
  readonly richness: MapGenSize
2018
2048
  }
2019
2049
 
2050
+ /**
2051
+ * @deprecated Use {@link CliffPlacementSettings} instead
2052
+ */
2053
+ type CliffPlacementSettingsRead = CliffPlacementSettings
2054
+
2020
2055
  /**
2021
2056
  * The 'map type' dropdown in the map generation GUI is actually a selector for elevation generator. The base game sets `property_expression_names.elevation` to `"0_16-elevation"` to reproduce terrain from 0.16 or to `"0_17-island"` for the island preset. If generators are available for other properties, the 'map type' dropdown in the GUI will be renamed to 'elevation' and shown along with selectors for the other selectable properties.
2022
2057
  * @see MapGenSettingsWrite
@@ -2180,6 +2215,11 @@ interface MapGenSettingsWrite {
2180
2215
  readonly property_expression_names: Record<string, string>
2181
2216
  }
2182
2217
 
2218
+ /**
2219
+ * @deprecated Use {@link MapGenSettings} instead
2220
+ */
2221
+ type MapGenSettingsRead = MapGenSettings
2222
+
2183
2223
  interface AdvancedMapGenSettings {
2184
2224
  readonly pollution: PollutionMapSettings
2185
2225
  readonly enemy_evolution: EnemyEvolutionMapSettings
@@ -2481,6 +2521,11 @@ interface DeciderCombinatorParametersWrite {
2481
2521
  readonly copy_count_from_input?: boolean
2482
2522
  }
2483
2523
 
2524
+ /**
2525
+ * @deprecated Use {@link DeciderCombinatorParameters} instead
2526
+ */
2527
+ type DeciderCombinatorParametersRead = DeciderCombinatorParameters
2528
+
2484
2529
  interface InserterCircuitConditions {
2485
2530
  readonly circuit?: CircuitConditionWrite
2486
2531
  readonly logistics?: CircuitConditionWrite
@@ -2532,6 +2577,11 @@ interface CircuitConditionWrite {
2532
2577
  readonly constant?: int
2533
2578
  }
2534
2579
 
2580
+ /**
2581
+ * @deprecated Use {@link CircuitCondition} instead
2582
+ */
2583
+ type CircuitConditionRead = CircuitCondition
2584
+
2535
2585
  /**
2536
2586
  * @see CircuitConditionDefinitionWrite
2537
2587
  * @see {@link https://lua-api.factorio.com/latest/Concepts.html#CircuitConditionDefinition Online documentation}
@@ -2556,6 +2606,11 @@ interface CircuitConditionDefinitionWrite {
2556
2606
  readonly fulfilled?: boolean
2557
2607
  }
2558
2608
 
2609
+ /**
2610
+ * @deprecated Use {@link CircuitConditionDefinition} instead
2611
+ */
2612
+ type CircuitConditionDefinitionRead = CircuitConditionDefinition
2613
+
2559
2614
  interface CircuitConnectionDefinition {
2560
2615
  /**
2561
2616
  * Wire color, either {@link defines.wire_type.red} or {@link defines.wire_type.green}.
@@ -3158,6 +3213,11 @@ interface WaitConditionWrite {
3158
3213
  readonly condition?: CircuitConditionWrite
3159
3214
  }
3160
3215
 
3216
+ /**
3217
+ * @deprecated Use {@link WaitCondition} instead
3218
+ */
3219
+ type WaitConditionRead = WaitCondition
3220
+
3161
3221
  /**
3162
3222
  * @see TrainScheduleRecordWrite
3163
3223
  * @see {@link https://lua-api.factorio.com/latest/Concepts.html#TrainScheduleRecord Online documentation}
@@ -3206,6 +3266,11 @@ interface TrainScheduleRecordWrite {
3206
3266
  readonly temporary?: boolean
3207
3267
  }
3208
3268
 
3269
+ /**
3270
+ * @deprecated Use {@link TrainScheduleRecord} instead
3271
+ */
3272
+ type TrainScheduleRecordRead = TrainScheduleRecord
3273
+
3209
3274
  /**
3210
3275
  * @see TrainScheduleWrite
3211
3276
  * @see {@link https://lua-api.factorio.com/latest/Concepts.html#TrainSchedule Online documentation}
@@ -3230,6 +3295,11 @@ interface TrainScheduleWrite {
3230
3295
  readonly records: readonly TrainScheduleRecordWrite[]
3231
3296
  }
3232
3297
 
3298
+ /**
3299
+ * @deprecated Use {@link TrainSchedule} instead
3300
+ */
3301
+ type TrainScheduleRead = TrainSchedule
3302
+
3233
3303
  interface BaseGuiArrowSpecification {
3234
3304
  /**
3235
3305
  * This determines which of the following fields will be required. Must be one of `"nowhere"` (will remove the arrow entirely), `"goal"` (will point to the current goal), `"entity_info"`, `"active_window"`, `"entity"`, `"position"`, `"crafting_queue"` or `"item_stack"` (will point to a given item stack in an inventory). Depending on this value, other fields may have to be specified.
@@ -4503,6 +4573,11 @@ type PrototypeFilterWrite = readonly (
4503
4573
  | TechnologyPrototypeFilterWrite
4504
4574
  )[]
4505
4575
 
4576
+ /**
4577
+ * @deprecated Use {@link PrototypeFilter} instead
4578
+ */
4579
+ type PrototypeFilterRead = PrototypeFilter
4580
+
4506
4581
  /**
4507
4582
  * Common attributes to all variants of {@link ItemPrototypeFilter}.
4508
4583
  */
@@ -6297,6 +6372,11 @@ type EventFilterWrite = readonly (
6297
6372
  | LuaPlayerRepairedEntityEventFilter
6298
6373
  )[]
6299
6374
 
6375
+ /**
6376
+ * @deprecated Use {@link EventFilter} instead
6377
+ */
6378
+ type EventFilterRead = EventFilter
6379
+
6300
6380
  /**
6301
6381
  * Common attributes to all variants of {@link LuaScriptRaisedReviveEventFilter}.
6302
6382
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typed-factorio",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Featureful typescript definitions for the the Factorio modding lua api.",
5
5
  "keywords": [
6
6
  "factorio",