Giter Site home page Giter Site logo

Add Typescript typings about postmark.js HOT 9 CLOSED

benbayard avatar benbayard commented on August 16, 2024
Add Typescript typings

from postmark.js.

Comments (9)

atheken avatar atheken commented on August 16, 2024

We'd actually like to move the whole library to using Typescript.

A huge help would be to transliterate the models from the .net library to Typescript classes. The models that need converted are here:

https://github.com/wildbit/postmark-dotnet/tree/master/src/Postmark/Model &
https://github.com/wildbit/postmark-dotnet/tree/master/src/Postmark.PCL/Model

@benbayard Are you interested in contributing this code?

from postmark.js.

benbayard avatar benbayard commented on August 16, 2024

Hey @atheken I actually made TS typings for @types/postmark, so moving that code here should not be too difficult:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/postmark/index.d.ts

from postmark.js.

atheken avatar atheken commented on August 16, 2024

That is a good start, but for version 2, I'd like to actually port the code to using Typescript throughout. This has some benefits of assisting in development and testing of the module, and no need to keep .d.ts files in sync with the actual JS.

Thanks for publishing that to DT.

from postmark.js.

benbayard avatar benbayard commented on August 16, 2024

Absolutely, that's what I meant! I can try to convert this later on this weekend.

from postmark.js.

swftvsn avatar swftvsn commented on August 16, 2024

I don't have access to Visual Studio, but it seems the conversion can be automated

Is there any timeline when typescript conversion might happen?

from postmark.js.

swftvsn avatar swftvsn commented on August 16, 2024

Any news about this? @atheken

from postmark.js.

atheken avatar atheken commented on August 16, 2024

We are in the process of finalizing a brand new edition of postmark.js that is re-written in typescript.

https://github.com/wildbit/postmark.js/tree/typescript-support2

Feel free to reference this branch in your project to give it a test drive. I would expect it to land in master and be released in the next week.

from postmark.js.

swftvsn avatar swftvsn commented on August 16, 2024

Awesome! Thanks @atheken !

from postmark.js.

ibalosh avatar ibalosh commented on August 16, 2024

we just released new version of library with added Typescript support

from postmark.js.

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.