Zod- / jsVideoUrlParser

A javascript parser to extract informations like provider, channel, id, start time from YouTube, Vimeo, Dailymotion, Twitch,... urls
MIT License
234 stars 73 forks source link

Fix template.d.ts incorrect import of urlParser #70

Closed saibayadon closed 3 years ago

saibayadon commented 3 years ago

Currently the version published over at npm seems to be broken for TypeScript users with the error: Cannot find module './provider/template' or its corresponding type declarations.. I assume this could be fixed by pushing a bumped version.

So I installed the module directly from the repo (via yarn add https://github.com/Zod-/jsVideoUrlParser) but that also ended in failure due to a typo / wrong import in template.d.ts. This PR fixes that typo.

I'd also suggest perhaps adding another script that runs a quick type-check on the project along with linting to prevent these issues in the future.

Thanks!

romgere commented 3 years ago

Just to link issue with this PR : https://github.com/Zod-/jsVideoUrlParser/issues/71

tihonko999 commented 2 years ago

I still get error on version 0.4.3

Cannot find module './provider/template' or its corresponding type declarations.