dailymotion / vast-client-js

VAST (up to 4) parsing library for JavaScript
https://iabtechlab.com/wp-content/uploads/2022/09/VAST_4.3.pdf
MIT License
363 stars 217 forks source link

Investigate possibility of adding typescript declaration file without adding typescript package #325

Open kobawan opened 4 years ago

kobawan commented 4 years ago

Currently we have types from the vast-client in https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/vast-client/index.d.ts . Not only are they getting constantly outdated, but there is no versioning (alpha vs stable). Ideally we could move this file to vast-client-js where we would maintain it frequently, without forcing users to add typescript to their applications. It requires some investigation as to whether that is possible though.

stefanullinger commented 4 years ago

Hi @kobawan,

sounds great! Found some blog post about this here: https://dev.to/open-wc/generating-typescript-definition-files-from-javascript-5bp2

kobawan commented 4 years ago

Ah this is very promising! If you wish to contribute you can make a proof-of-concept and participate in hacktoberfest 🥇

jer-0 commented 1 year ago

Any news? its almost 2023 😉. DefinitelyTyped not updated to 4.0.0.

VladStepanov commented 9 months ago

The main lib is 5.0.0 version while types so far 3.0.4 😭

linhlekim commented 1 month ago

Did anyone find a resolution for this? I'm hitting the same problem, looking to use a method parseVAST, from vastClient.. which doesn't exist in 3.04 lol