fix(types): keep the original type when unwrapping markRaw (#3791)

This commit is contained in:
Carlos Rodrigues
2022-05-06 10:07:49 +01:00
committed by GitHub
parent 67099fe202
commit 32e53bfd47
4 changed files with 49 additions and 7 deletions

6
test-dts/index.d.ts vendored
View File

@@ -9,9 +9,9 @@ export function expectType<T>(value: T): void
export function expectError<T>(value: T): void
export function expectAssignable<T, T2 extends T = T>(value: T2): void
export type IsUnion<T, U extends T = T> = (T extends any
? (U extends T ? false : true)
: never) extends false
export type IsUnion<T, U extends T = T> = (
T extends any ? (U extends T ? false : true) : never
) extends false
? false
: true