Code Monkey home page Code Monkey logo

Comments (8)

desandro avatar desandro commented on July 19, 2024 37

Add a ๐Ÿ‘ reaction to this issue if you would like to see Zdog get a declaration file. Do not add +1 comments โ€” They will be deleted.


I've re-opened the issue to gauge general interest.

from zdog.

demensky avatar demensky commented on July 19, 2024 9

Added.

from zdog.

desandro avatar desandro commented on July 19, 2024 3

I am not familiar nor do I want to use TypeScript.

from zdog.

FlorianWendelborn avatar FlorianWendelborn commented on July 19, 2024 1

To extend on @natemoo-re, even non-typescript users like yourself would benefit from it as VSCode will use the definition file for auto completion, even in JavaScript projects.

from zdog.

desandro avatar desandro commented on July 19, 2024

Hello! I appreciate this suggestion. I understanding that adopting TypeScript would have several significant benefits to Zdog's source code. That said, TypeScript is not my cup of tea. My flavor is vanilla. I'll have to pass on this one.

from zdog.

FlorianWendelborn avatar FlorianWendelborn commented on July 19, 2024

@desandro is it because youโ€™re not familiar enough with typescript or because you donโ€™t want it to be typescript? In the First case, someone could send a PR.

from zdog.

natemoo-re avatar natemoo-re commented on July 19, 2024

Thanks for the response! It's totally understandable that TypeScript doesn't fit into your workflow. No need to adopt a stack you're not comfortable with.

Since there are a lot of TypeScript users that could benefit from this, would you be willing to accept a PR that adds a simple declaration file to this package? I have already written one based on the public API (anything documented on zzz.dog) and would be happy to maintain it going forward.

This would be the optimal solution for Zdog/TypeScript users since npm install zdog would include all the necessary files. I would do my best to address any issues opened here with a typescript label.

If this sounds like overhead that you're not comfortable with, no worriesโ€”I can publish @types/zdog to DefinitelyTyped.

from zdog.

MasterCash avatar MasterCash commented on July 19, 2024

personally I created my own declaration file just for my typescript project I am working on and would love to see an official one instead of my hack-together one.

from zdog.

Related Issues (20)

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.