Skip to content

Commit

Permalink
feat: add triggerRef to the composition api methods (unplugin#38)
Browse files Browse the repository at this point in the history
* Add triggerRef to composition-api methods

* Update test
  • Loading branch information
Demivan authored Sep 20, 2021
1 parent e37f390 commit 5df0e67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/presets/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const CommonCompositionAPI = [
'shallowReactive',
'shallowReadonly',
'shallowRef',
'triggerRef',
'toRaw',
'toRef',
'toRefs',
Expand All @@ -46,7 +47,6 @@ export default <ImportsMap>({
...CommonCompositionAPI,

// vue3 only
'triggerRef',
'onDeactivated',
'onServerPrefetch',
'onErrorCaptured',
Expand Down
1 change: 1 addition & 0 deletions test/__snapshots__/dts.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ declare global {
const shallowReactive: typeof import('vue-demi')['shallowReactive']
const shallowReadonly: typeof import('vue-demi')['shallowReadonly']
const shallowRef: typeof import('vue-demi')['shallowRef']
const triggerRef: typeof import('vue-demi')['triggerRef']
const toRaw: typeof import('vue-demi')['toRaw']
const toRef: typeof import('vue-demi')['toRef']
const toRefs: typeof import('vue-demi')['toRefs']
Expand Down

0 comments on commit 5df0e67

Please sign in to comment.