npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@flying-dice/tslua-dcs-gui-types

v0.30.0

Published

Typescript type definitions for DCS GUI environment

Downloads

12

Readme

DCS World TypeScript Type Definitions

This repository contains TypeScript type definitions for DCS Worlds GUI Environment, enabling developers to use TypeScript’s powerful type system when scripting for DCS World. These type definitions are designed to be used with TypeScriptToLua to transpile TypeScript code into Lua, which is the scripting language used by DCS World.

Installation

To use these type definitions in your project, you need to have Node.js and npm installed. You can then install the type definitions via npm with the command

npm install @flying-dice/tslua-dcs-gui-types

Usage

TBC

Contribution

Contributions to this project are welcome. If you find an issue or have suggestions for improvements, please open an issue or submit a pull request.

There are various ways to datamine dcs and of course the docs are a great source of information.

This project has relied heavily on DCSFiddle and the explore window which can help with exploring tables.

Exports

To seed the initial interface data is mined from DCS using DCS Fiddle.

https://dcsfiddle.pages.dev/

Once DCS Fiddle is setup run

npm run export

This will

  1. Read the export script packages/tslua-dcs-gui-types/scripts/export.fiddle.lua
  2. This will connect to DCS fiddle, traverse the namespaces
  3. Assemble a foundation typescript interface

From here you can extend the underlying interface and replace the typing information.

Updating the packages/tslua-dcs-gui-types/src/index.d.ts with a variable where the type is of your extending interface will allow it to be used.

To add new namespaces to be exported update the .exporttc.yaml and run the npm run export again.

Useful Resources

  • https://dcsfiddle.pages.dev/
  • https://wiki.hoggitworld.com/view/DCS_server_gameGUI
  • C:\Program Files\Eagle Dynamics\DCS World OpenBeta\API\DCS_ControlAPI.html

License

This project is licensed under the MIT License.

Acknowledgments

  • Thanks to the TypeScriptToLua team for their incredible tool.
  • Special thanks to the DCS World community for their continuous support and contributions.

Contact

For any inquiries or contributions, please open an issue on this repository.