mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Deconflict values of CheckMode.RestBindingElement and CheckMode.TypeOnly (#54540)
This commit is contained in:
parent
4749c38e47
commit
9583850fa7
@ -1260,7 +1260,7 @@ export const enum CheckMode {
|
||||
RestBindingElement = 1 << 7, // Checking a type that is going to be used to determine the type of a rest binding element
|
||||
// e.g. in `const { a, ...rest } = foo`, when checking the type of `foo` to determine the type of `rest`,
|
||||
// we need to preserve generic types instead of substituting them for constraints
|
||||
TypeOnly = 1 << 7, // Called from getTypeOfExpression, diagnostics may be omitted
|
||||
TypeOnly = 1 << 8, // Called from getTypeOfExpression, diagnostics may be omitted
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user