Git Product home page Git Product logo

Comments (9)

svc-developer avatar svc-developer commented on June 10, 2024 6

The JavaScript Avatax SDK has existing limitations due to the fact that no models are present. When the caller is passing information to a method which will invoke the corresponding Avatax API, they have no idea what the model looks like or is expected without digging through the Avalara documentation on their own.

We have created a Typescript version of the Avatax SDK, which includes full support for models and enums. Javascript and Typescript developers will now get intelisense from any IDE which supports type files. Additionally, they will be able to navigate directly to the model definitions in the IDE and see exactly what is required and optional instead of having to look at some external documentation. We also added documentation for each method in the SDK which describes what the API does and other information.

The new version of the SDK is fully backwards compatible, so existing developers can take advantage of these new, useful features without having to make any changes to their code base.

We are looking for people willing to test out an early version of the SDK.

Steps to use:

  1. npm install ava-typescript --save
  2. Replace all require / imports to 'avatax' to 'ava-typescript'

Thank you.
cc: @jakerainis @ajhollowayvrm @cloudworkpro-dave @ryan-efendy @jyeros @awhitford

from avatax-rest-v2-js-sdk.

awhitford avatar awhitford commented on June 10, 2024

Inspiration: https://dev.to/open-wc/generating-typescript-definition-files-from-javascript-5bp2

from avatax-rest-v2-js-sdk.

awhitford avatar awhitford commented on June 10, 2024

Note that migrating to TypeScript would deprecate Babel.

from avatax-rest-v2-js-sdk.

ryan6416 avatar ryan6416 commented on June 10, 2024

Any update on the type definitions?

from avatax-rest-v2-js-sdk.

cloudworkpro-dave avatar cloudworkpro-dave commented on June 10, 2024

Any update on this?

from avatax-rest-v2-js-sdk.

ajhollowayvrm avatar ajhollowayvrm commented on June 10, 2024

Anything?

from avatax-rest-v2-js-sdk.

jakerainis avatar jakerainis commented on June 10, 2024

Bumping.

from avatax-rest-v2-js-sdk.

svc-developer avatar svc-developer commented on June 10, 2024

We have released the Typescript version of the JS SDK today (11/3/22), release 22.11.1. Please check it out we welcome any feedback. https://github.com/avadev/AvaTax-REST-V2-JS-SDK/releases/tag/22.11.1

from avatax-rest-v2-js-sdk.

svc-developer avatar svc-developer commented on June 10, 2024

Note to all devs trying ava-typescript: ava-typescript will now be deprecated and unpublished as we released Typescript with the 22.11.1 release on 11-03-22 for Avatax, please point to that release as it will be what we use for Typescript and Javascript moving forward. @awhitford @jakerainis @ryan-efendy @ajhollowayvrm @jyeros

from avatax-rest-v2-js-sdk.

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.