Skip to content

Commit 0eda688

Browse files
committed
fix: types error
1 parent 2b19898 commit 0eda688

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/compiler-ssr/src/runtimeHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const SSR_RENDER_SUSPENSE: unique symbol = Symbol(`ssrRenderSuspense`)
2828
export const SSR_GET_DIRECTIVE_PROPS: unique symbol =
2929
Symbol(`ssrGetDirectiveProps`)
3030

31-
export const ssrHelpers = {
31+
export const ssrHelpers: Record<symbol, string> = {
3232
[SSR_INTERPOLATE]: `ssrInterpolate`,
3333
[SSR_RENDER_VNODE]: `ssrRenderVNode`,
3434
[SSR_RENDER_COMPONENT]: `ssrRenderComponent`,

packages/reactivity/src/computed.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ export class ComputedRefImpl<T> {
3838
public readonly effect: ReactiveEffect<T>
3939

4040
public readonly __v_isRef = true
41-
public readonly [ReactiveFlags.IS_READONLY]: boolean = false
41+
// TODO isolatedDeclarations
42+
// public readonly [ReactiveFlags.IS_READONLY]: boolean = false
43+
public readonly __v_isReadonly: boolean = false
4244

4345
public _cacheable: boolean
4446

packages/reactivity/src/reactive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>
6666

6767
declare const ReactiveMarkerSymbol: unique symbol
6868

69-
export declare class ReactiveMarker {
70-
private [ReactiveMarkerSymbol]?: void
69+
export interface ReactiveMarker {
70+
[ReactiveMarkerSymbol]?: void
7171
}
7272

7373
export type Reactive<T> = UnwrapNestedRefs<T> &

0 commit comments

Comments
 (0)