Comments (4)
I think the types
field is meant to provide types if you have a javascript npm package (with a main.js
), so typescript knows about the types when you import "package"
. typed-factorio has no executable files, so types
wouldn't be appropriate.
Out of curiosity, what tool are you trying to use? There might be another way to specify types.
from typed-factorio.
I wanted to try Dukat, along with Gradle https://github.com/Kotlin/dukat. I've managed to manually specify the typed-factorio .d.ts
files before, but it's automatic if package.json
has types
defined :)
from typed-factorio.
A kotlin-typescript-lua pipeline? interesting...
I'm not sure dukat currently supports "global" declarations as typed-factorio does, however we can try it anyways. I've just released version 0.11.0-packagetypes-1
which adds the types field. Let me know how it goes. If it works well I'll add it to the main versions as well.
from typed-factorio.
Closing due to inactivity.
If the experiment above shows promise, I'll reopen this issue.
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
- `Color` - unable to access rgba fields HOT 5
- 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.