Skip to content

Commit e919147

Browse files
committed
chore: rename to RawSymbol to match RefSymbol casing
1 parent 649a1ee commit e919147

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/reactivity/src/reactive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
shallowCollectionHandlers,
1212
shallowReadonlyCollectionHandlers
1313
} from './collectionHandlers'
14-
import { UnwrapRef, Ref, RAW_SYMBOL } from './ref'
14+
import { UnwrapRef, Ref, RawSymbol } from './ref'
1515

1616
export const enum ReactiveFlags {
1717
SKIP = '__v_skip',
@@ -232,7 +232,7 @@ export function toRaw<T>(observed: T): T {
232232

233233
export function markRaw<T extends object>(
234234
value: T
235-
): T & { [RAW_SYMBOL]?: true } {
235+
): T & { [RawSymbol]?: true } {
236236
def(value, ReactiveFlags.SKIP, true)
237237
return value
238238
}

packages/reactivity/src/ref.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { reactive, isProxy, toRaw, isReactive } from './reactive'
55
import { CollectionTypes } from './collectionHandlers'
66

77
export declare const RefSymbol: unique symbol
8-
export declare const RAW_SYMBOL: unique symbol
8+
export declare const RawSymbol: unique symbol
99

1010
export interface Ref<T = any> {
1111
value: T
@@ -213,7 +213,7 @@ export type UnwrapRef<T> = T extends Ref<infer V>
213213
? UnwrapRefSimple<V>
214214
: UnwrapRefSimple<T>
215215

216-
type UnwrapRefSimple<T> = T extends { [RAW_SYMBOL]?: true }
216+
type UnwrapRefSimple<T> = T extends { [RawSymbol]?: true }
217217
? T
218218
: T extends
219219
| Function

0 commit comments

Comments
 (0)