We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf0cbde commit 09d913bCopy full SHA for 09d913b
packages/dts-test/ref.test-d.ts
@@ -202,7 +202,7 @@ if (refStatus.value === 'initial') {
202
}
203
204
describe('shallowRef with generic', <T extends { name: string }>() => {
205
- const r = ref({}) as unknown as T
+ const r = {} as T
206
const s = shallowRef(r)
207
expectType<string>(s.value.name)
208
expectType<ShallowRef<T>>(shallowRef(r))
0 commit comments