Skip to content

Commit

Permalink
Update ref.test-d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored Dec 16, 2023
1 parent bf0cbde commit 09d913b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dts-test/ref.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ if (refStatus.value === 'initial') {
}

describe('shallowRef with generic', <T extends { name: string }>() => {
const r = ref({}) as unknown as T
const r = {} as T
const s = shallowRef(r)
expectType<string>(s.value.name)
expectType<ShallowRef<T>>(shallowRef(r))
Expand Down

0 comments on commit 09d913b

Please sign in to comment.