feat(reactivity-transform/types): restructure macro types + export types for all shorthand methods

This commit is contained in:
Evan You
2021-12-11 18:15:44 +08:00
parent 198ca14f19
commit db729ce99e
7 changed files with 151 additions and 109 deletions

19
packages/vue/macros-global.d.ts vendored Normal file
View File

@@ -0,0 +1,19 @@
import {
$ as _$,
$$ as _$$,
$ref as _$ref,
$shallowRef as _$shallowRef,
$computed as _$computed,
$customRef as _$customRef,
$toRef as _$toRef
} from './macros'
declare global {
const $: typeof _$
const $$: typeof _$$
const $ref: typeof _$ref
const $shallowRef: typeof _$shallowRef
const $computed: typeof _$computed
const $customRef: typeof _$customRef
const $toRef: typeof _$toRef
}