Skip to content

Commit

Permalink
fix: vue-demi
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 8, 2021
1 parent 13d251d commit b23aaf6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/boolean/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { reactify, MaybeRef } from '@vueuse/shared'

import { computed, ComputedRef, Ref, unref } from 'vue'
import { computed, ComputedRef, Ref, unref } from 'vue-demi'

/*@__PURE__*/
export const toBoolean = reactify((a: any) => !!a)
Expand Down
2 changes: 1 addition & 1 deletion src/number/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { reactify } from '@vueuse/shared'
import { Ref } from 'vue'
import { Ref } from 'vue-demi'

export * from './generated'

Expand Down
2 changes: 1 addition & 1 deletion test/examples.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ref } from 'vue'
import { ref } from 'vue-demi'
import { rs, is, ternary, set, dec, multiply, sum, toUpperCase, stringify, pow, sqrt } from '../src/all'
import { $expect } from './utils'

Expand Down
2 changes: 1 addition & 1 deletion test/string.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ref } from 'vue'
import { ref } from 'vue-demi'
import { multiply, rs, is } from '../src/all'
import { $expect } from './utils'

Expand Down
2 changes: 1 addition & 1 deletion test/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MaybeRef } from '@vueuse/shared'
import { unref } from 'vue'
import { unref } from 'vue-demi'

export function $expect(a: MaybeRef<boolean>) {
expect(unref(a)).toBe(true)
Expand Down

0 comments on commit b23aaf6

Please sign in to comment.