Skip to content

Commit

Permalink
vue3 options api declare
Browse files Browse the repository at this point in the history
  • Loading branch information
刘鹏威 committed Apr 27, 2022
1 parent 3a1d375 commit 087e6f4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A simple Vue.js plugin for handling browser cookies
### Browser
```
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vue-cookies@1.8.0/vue-cookies.js"></script>
<script src="https://unpkg.com/vue-cookies@1.8.1/vue-cookies.js"></script>
```
### Package Managers
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-cookies",
"version": "1.8.0",
"version": "1.8.1",
"description": "A simple Vue.js plugin for handling browser cookies",
"main": "vue-cookies.js",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions types/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ declare module "vue/types/vue" {
$cookies: VueCookies;
}
}

declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$cookies: VueCookies
}
}
2 changes: 1 addition & 1 deletion vue-cookies.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Vue Cookies v1.8.0
* Vue Cookies v1.8.1
* https://github.com/cmp-cc/vue-cookies
*
* Copyright 2016, cmp-cc
Expand Down

0 comments on commit 087e6f4

Please sign in to comment.