dargmuesli / nuxt-cookie-control

A highly configurable cookie banner for Nuxt.
MIT License
229 stars 43 forks source link

chore(types): inject plugin types #221

Closed Yizack closed 2 months ago

Yizack commented 2 months ago

📚 Description

This PR adds plugin type declaration injection, this also to enables ctrl+click to open $cookies definition when used with the useNuxtApp composable. I've seen other modules type their plugins this way too.

Injecting plugin types also avoids unknown types on vue-tsc checks.

Solves ci errors on #220

📝 Checklist

dargmuesli-bot commented 2 months ago

:tada: This PR is included in version 8.4.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: