factorio-types 0.0.50 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -3
- package/dist/classes.d.ts +4785 -1
- package/dist/core.d.ts +9 -4
- package/dist/defines.d.ts +816 -816
- package/dist/prototypes.d.ts +1 -1
- package/index.d.ts +1 -0
- package/package.json +13 -6
- package/tsconfig.base.json +15 -0
package/dist/prototypes.d.ts
CHANGED
|
@@ -10105,5 +10105,5 @@ interface WindSound {
|
|
|
10105
10105
|
type: 'wind-sound'
|
|
10106
10106
|
}
|
|
10107
10107
|
|
|
10108
|
-
|
|
10108
|
+
type dataExtendType = ({ type: 'accumulator' } & AccumulatorPrototype) | ({ type: 'achievement' } & AchievementPrototype) | ({ type: 'active-defense-equipment' } & ActiveDefenseEquipmentPrototype) | ({ type: 'ambient-sound' } & AmbientSound) | ({ type: 'ammo-category' } & AmmoCategory) | ({ type: 'ammo' } & AmmoItemPrototype) | ({ type: 'ammo-turret' } & AmmoTurretPrototype) | ({ type: 'animation' } & AnimationPrototype) | ({ type: 'arithmetic-combinator' } & ArithmeticCombinatorPrototype) | ({ type: 'armor' } & ArmorPrototype) | ({ type: 'arrow' } & ArrowPrototype) | ({ type: 'artillery-flare' } & ArtilleryFlarePrototype) | ({ type: 'artillery-projectile' } & ArtilleryProjectilePrototype) | ({ type: 'artillery-turret' } & ArtilleryTurretPrototype) | ({ type: 'artillery-wagon' } & ArtilleryWagonPrototype) | ({ type: 'assembling-machine' } & AssemblingMachinePrototype) | ({ type: 'autoplace-control' } & AutoplaceControl) | ({ type: 'battery-equipment' } & BatteryEquipmentPrototype) | ({ type: 'beacon' } & BeaconPrototype) | ({ type: 'beam' } & BeamPrototype) | ({ type: 'belt-immunity-equipment' } & BeltImmunityEquipmentPrototype) | ({ type: 'blueprint-book' } & BlueprintBookPrototype) | ({ type: 'blueprint' } & BlueprintItemPrototype) | ({ type: 'boiler' } & BoilerPrototype) | ({ type: 'build-entity-achievement' } & BuildEntityAchievementPrototype) | ({ type: 'burner-generator' } & BurnerGeneratorPrototype) | ({ type: 'capsule' } & CapsulePrototype) | ({ type: 'car' } & CarPrototype) | ({ type: 'cargo-wagon' } & CargoWagonPrototype) | ({ type: 'character-corpse' } & CharacterCorpsePrototype) | ({ type: 'character' } & CharacterPrototype) | ({ type: 'cliff' } & CliffPrototype) | ({ type: 'combat-robot-count' } & CombatRobotCountAchievementPrototype) | ({ type: 'combat-robot' } & CombatRobotPrototype) | ({ type: 'constant-combinator' } & ConstantCombinatorPrototype) | ({ type: 'construct-with-robots-achievement' } & ConstructWithRobotsAchievementPrototype) | ({ type: 'construction-robot' } & ConstructionRobotPrototype) | ({ type: 'container' } & ContainerPrototype) | ({ type: 'copy-paste-tool' } & CopyPasteToolPrototype) | ({ type: 'corpse' } & CorpsePrototype) | ({ type: 'curved-rail' } & CurvedRailPrototype) | ({ type: 'custom-input' } & CustomInputPrototype) | ({ type: 'damage-type' } & DamageType) | ({ type: 'decider-combinator' } & DeciderCombinatorPrototype) | ({ type: 'deconstruct-with-robots-achievement' } & DeconstructWithRobotsAchievementPrototype) | ({ type: 'deconstructible-tile-proxy' } & DeconstructibleTileProxyPrototype) | ({ type: 'deconstruction-item' } & DeconstructionItemPrototype) | ({ type: 'optimized-decorative' } & DecorativePrototype) | ({ type: 'deliver-by-robots-achievement' } & DeliverByRobotsAchievementPrototype) | ({ type: 'dont-build-entity-achievement' } & DontBuildEntityAchievementPrototype) | ({ type: 'dont-craft-manually-achievement' } & DontCraftManuallyAchievementPrototype) | ({ type: 'dont-use-entity-in-energy-production-achievement' } & DontUseEntityInEnergyProductionAchievementPrototype) | ({ type: 'editor-controller' } & EditorControllerPrototype) | ({ type: 'electric-energy-interface' } & ElectricEnergyInterfacePrototype) | ({ type: 'electric-pole' } & ElectricPolePrototype) | ({ type: 'electric-turret' } & ElectricTurretPrototype) | ({ type: 'unit-spawner' } & EnemySpawnerPrototype) | ({ type: 'energy-shield-equipment' } & EnergyShieldEquipmentPrototype) | ({ type: 'entity-ghost' } & EntityGhostPrototype) | ({ type: 'particle' } & EntityParticlePrototype) | ({ type: 'equipment-category' } & EquipmentCategory) | ({ type: 'equipment-grid' } & EquipmentGridPrototype) | ({ type: 'explosion' } & ExplosionPrototype) | ({ type: 'finish-the-game-achievement' } & FinishTheGameAchievementPrototype) | ({ type: 'fire' } & FireFlamePrototype) | ({ type: 'fish' } & FishPrototype) | ({ type: 'flame-thrower-explosion' } & FlameThrowerExplosionPrototype) | ({ type: 'fluid' } & FluidPrototype) | ({ type: 'stream' } & FluidStreamPrototype) | ({ type: 'fluid-turret' } & FluidTurretPrototype) | ({ type: 'fluid-wagon' } & FluidWagonPrototype) | ({ type: 'flying-text' } & FlyingTextPrototype) | ({ type: 'font' } & FontPrototype) | ({ type: 'fuel-category' } & FuelCategory) | ({ type: 'furnace' } & FurnacePrototype) | ({ type: 'gate' } & GatePrototype) | ({ type: 'generator-equipment' } & GeneratorEquipmentPrototype) | ({ type: 'generator' } & GeneratorPrototype) | ({ type: 'god-controller' } & GodControllerPrototype) | ({ type: 'group-attack-achievement' } & GroupAttackAchievementPrototype) | ({ type: 'gui-style' } & GuiStyle) | ({ type: 'gun' } & GunPrototype) | ({ type: 'heat-interface' } & HeatInterfacePrototype) | ({ type: 'heat-pipe' } & HeatPipePrototype) | ({ type: 'highlight-box' } & HighlightBoxEntityPrototype) | ({ type: 'infinity-container' } & InfinityContainerPrototype) | ({ type: 'infinity-pipe' } & InfinityPipePrototype) | ({ type: 'inserter' } & InserterPrototype) | ({ type: 'item-entity' } & ItemEntityPrototype) | ({ type: 'item-group' } & ItemGroup) | ({ type: 'item' } & ItemPrototype) | ({ type: 'item-request-proxy' } & ItemRequestProxyPrototype) | ({ type: 'item-subgroup' } & ItemSubGroup) | ({ type: 'item-with-entity-data' } & ItemWithEntityDataPrototype) | ({ type: 'item-with-inventory' } & ItemWithInventoryPrototype) | ({ type: 'item-with-label' } & ItemWithLabelPrototype) | ({ type: 'item-with-tags' } & ItemWithTagsPrototype) | ({ type: 'kill-achievement' } & KillAchievementPrototype) | ({ type: 'lab' } & LabPrototype) | ({ type: 'lamp' } & LampPrototype) | ({ type: 'land-mine' } & LandMinePrototype) | ({ type: 'leaf-particle' } & LeafParticlePrototype) | ({ type: 'linked-belt' } & LinkedBeltPrototype) | ({ type: 'linked-container' } & LinkedContainerPrototype) | ({ type: 'loader-1x1' } & Loader1x1Prototype) | ({ type: 'loader' } & Loader1x2Prototype) | ({ type: 'locomotive' } & LocomotivePrototype) | ({ type: 'logistic-container' } & LogisticContainerPrototype) | ({ type: 'logistic-robot' } & LogisticRobotPrototype) | ({ type: 'map-gen-presets' } & MapGenPresets) | ({ type: 'map-settings' } & MapSettings) | ({ type: 'market' } & MarketPrototype) | ({ type: 'mining-drill' } & MiningDrillPrototype) | ({ type: 'mining-tool' } & MiningToolPrototype) | ({ type: 'module-category' } & ModuleCategory) | ({ type: 'module' } & ModulePrototype) | ({ type: 'mouse-cursor' } & MouseCursor) | ({ type: 'movement-bonus-equipment' } & MovementBonusEquipmentPrototype) | ({ type: 'noise-expression' } & NamedNoiseExpression) | ({ type: 'night-vision-equipment' } & NightVisionEquipmentPrototype) | ({ type: 'noise-layer' } & NoiseLayer) | ({ type: 'offshore-pump' } & OffshorePumpPrototype) | ({ type: 'optimized-particle' } & ParticlePrototype) | ({ type: 'particle-source' } & ParticleSourcePrototype) | ({ type: 'pipe' } & PipePrototype) | ({ type: 'pipe-to-ground' } & PipeToGroundPrototype) | ({ type: 'player-damaged-achievement' } & PlayerDamagedAchievementPrototype) | ({ type: 'player-port' } & PlayerPortPrototype) | ({ type: 'power-switch' } & PowerSwitchPrototype) | ({ type: 'produce-achievement' } & ProduceAchievementPrototype) | ({ type: 'produce-per-hour-achievement' } & ProducePerHourAchievementPrototype) | ({ type: 'programmable-speaker' } & ProgrammableSpeakerPrototype) | ({ type: 'projectile' } & ProjectilePrototype) | ({ type: 'pump' } & PumpPrototype) | ({ type: 'radar' } & RadarPrototype) | ({ type: 'rail-chain-signal' } & RailChainSignalPrototype) | ({ type: 'rail-planner' } & RailPlannerPrototype) | ({ type: 'rail-remnants' } & RailRemnantsPrototype) | ({ type: 'rail-signal' } & RailSignalPrototype) | ({ type: 'reactor' } & ReactorPrototype) | ({ type: 'recipe-category' } & RecipeCategory) | ({ type: 'recipe' } & RecipePrototype) | ({ type: 'repair-tool' } & RepairToolPrototype) | ({ type: 'research-achievement' } & ResearchAchievementPrototype) | ({ type: 'resource-category' } & ResourceCategory) | ({ type: 'resource' } & ResourceEntityPrototype) | ({ type: 'roboport-equipment' } & RoboportEquipmentPrototype) | ({ type: 'roboport' } & RoboportPrototype) | ({ type: 'rocket-silo' } & RocketSiloPrototype) | ({ type: 'rocket-silo-rocket' } & RocketSiloRocketPrototype) | ({ type: 'rocket-silo-rocket-shadow' } & RocketSiloRocketShadowPrototype) | ({ type: 'selection-tool' } & SelectionToolPrototype) | ({ type: 'shortcut' } & ShortcutPrototype) | ({ type: 'simple-entity' } & SimpleEntityPrototype) | ({ type: 'simple-entity-with-force' } & SimpleEntityWithForcePrototype) | ({ type: 'simple-entity-with-owner' } & SimpleEntityWithOwnerPrototype) | ({ type: 'smoke' } & SimpleSmokePrototype) | ({ type: 'smoke-with-trigger' } & SmokeWithTriggerPrototype) | ({ type: 'solar-panel-equipment' } & SolarPanelEquipmentPrototype) | ({ type: 'solar-panel' } & SolarPanelPrototype) | ({ type: 'sound' } & SoundPrototype) | ({ type: 'spectator-controller' } & SpectatorControllerPrototype) | ({ type: 'speech-bubble' } & SpeechBubblePrototype) | ({ type: 'spider-leg' } & SpiderLegPrototype) | ({ type: 'spider-vehicle' } & SpiderVehiclePrototype) | ({ type: 'spidertron-remote' } & SpidertronRemotePrototype) | ({ type: 'splitter' } & SplitterPrototype) | ({ type: 'sprite' } & SpritePrototype) | ({ type: 'sticker' } & StickerPrototype) | ({ type: 'storage-tank' } & StorageTankPrototype) | ({ type: 'straight-rail' } & StraightRailPrototype) | ({ type: 'technology' } & TechnologyPrototype) | ({ type: 'tile-effect' } & TileEffectDefinition) | ({ type: 'tile-ghost' } & TileGhostPrototype) | ({ type: 'tile' } & TilePrototype) | ({ type: 'tips-and-tricks-item' } & TipsAndTricksItem) | ({ type: 'tips-and-tricks-item-category' } & TipsAndTricksItemCategory) | ({ type: 'tool' } & ToolPrototype) | ({ type: 'train-path-achievement' } & TrainPathAchievementPrototype) | ({ type: 'train-stop' } & TrainStopPrototype) | ({ type: 'transport-belt' } & TransportBeltPrototype) | ({ type: 'tree' } & TreePrototype) | ({ type: 'trigger-target-type' } & TriggerTargetType) | ({ type: 'trivial-smoke' } & TrivialSmokePrototype) | ({ type: 'turret' } & TurretPrototype) | ({ type: 'tutorial' } & TutorialDefinition) | ({ type: 'underground-belt' } & UndergroundBeltPrototype) | ({ type: 'unit' } & UnitPrototype) | ({ type: 'upgrade-item' } & UpgradeItemPrototype) | ({ type: 'utility-constants' } & UtilityConstants) | ({ type: 'utility-sounds' } & UtilitySounds) | ({ type: 'utility-sprites' } & UtilitySprites) | ({ type: 'virtual-signal' } & VirtualSignalPrototype) | ({ type: 'wall' } & WallPrototype) | ({ type: 'wind-sound' } & WindSound) | PrototypeBase
|
|
10109
10109
|
}
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Typescript declarations for the
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Typescript declarations for the Factorio mod API",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"repository": "https://github.com/sguest/factorio-types.git",
|
|
7
7
|
"author": "Spencer Guest",
|
|
@@ -17,12 +17,19 @@
|
|
|
17
17
|
"cpy-cli": "^3.1.1",
|
|
18
18
|
"node-html-parser": "^1.1.16",
|
|
19
19
|
"ts-node": "^10.0.0",
|
|
20
|
-
"typescript": "4.
|
|
21
|
-
"typescript-to-lua": "^1.
|
|
20
|
+
"typescript": "^5.4.2",
|
|
21
|
+
"typescript-to-lua": "^1.25.1"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"index.d.ts",
|
|
25
|
+
"tsconfig.base.json",
|
|
25
26
|
"dist/**/*.d.ts"
|
|
26
27
|
],
|
|
27
|
-
"factorioVersion": "1.1.107"
|
|
28
|
-
|
|
28
|
+
"factorioVersion": "1.1.107",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"lua-types": "^2.13.1"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"typescript-to-lua": "^1.25.1"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/TypeScriptToLua/TypeScriptToLua/master/tsconfig-schema.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "esnext",
|
|
5
|
+
"lib": ["esnext"],
|
|
6
|
+
"strict": true,
|
|
7
|
+
"types": ["@typescript-to-lua/language-extensions"],
|
|
8
|
+
"strictNullChecks": false
|
|
9
|
+
},
|
|
10
|
+
"tstl": {
|
|
11
|
+
"luaTarget": "JIT",
|
|
12
|
+
"noImplicitSelf": true,
|
|
13
|
+
"noImplicitGlobalVariables": true,
|
|
14
|
+
},
|
|
15
|
+
}
|