Coder Social home page Coder Social logo

Comments (4)

The-Hierophant avatar The-Hierophant commented on July 29, 2024

import d.ts file works for now.
Look at danielyxie/bitburner#1942 (comment)
and use NetscriptDefinitions.d.ts as index.d.ts.

from bitburner-vscode.

Root-Core avatar Root-Core commented on July 29, 2024

It would be nice if the type definition was provided via npm.
It would be even better to provide the types with the plugin.
Maybe as a manual plugin command for now or with an autoupdate function?

I do not want to use npm in my Bitburner scripts, to keep it clean and tidy.

from bitburner-vscode.

phyzical avatar phyzical commented on July 29, 2024

@The-Hierophant thanks for that can confirm this works

@Root-Core the biggest issue is it needs to be resolvable in a way that will also work for the game itself

from bitburner-vscode.

Root-Core avatar Root-Core commented on July 29, 2024

@phyzical This shouldn't be a problem, as they are just types. If the IDE (vscode) can figure out the types you are all set.
They are not validated at runtime and are not transmitted to the game. There should not be any effect on the game.

The plugin could just spit out the file on demand and give you a reminder to update it, if there is a new version.

from bitburner-vscode.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.