Skip to content

Commit

Permalink
feat: export api on reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Aug 22, 2021
1 parent c6875bc commit e084f30
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/reactivity/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
export {
reactive,
readonly,
shallowReadonly,
isReadonly,
isReactive,
isProxy,
} from "./reactive";

export { ref, proxyRefs, unRef, isRef } from "./ref";

export { effect, stop } from "./effect";

export { computed } from "./computed";
2 changes: 1 addition & 1 deletion src/reactivity/src/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ export function unRef(ref) {
return isRef(ref) ? ref.value : ref;
}

function isRef(value) {
export function isRef(value) {
return value.__v_isRef;
}

0 comments on commit e084f30

Please sign in to comment.