Accept new baselines
This commit is contained in:
parent
4af3a3b541
commit
c104aa162e
3 changed files with 15 additions and 13 deletions
|
@ -2413,12 +2413,13 @@ declare namespace ts {
|
|||
enum InferencePriority {
|
||||
NakedTypeVariable = 1,
|
||||
HomomorphicMappedType = 2,
|
||||
MappedTypeConstraint = 4,
|
||||
ReturnType = 8,
|
||||
LiteralKeyof = 16,
|
||||
NoConstraints = 32,
|
||||
AlwaysStrict = 64,
|
||||
PriorityImpliesCombination = 28
|
||||
PartialHomomorphicMappedType = 4,
|
||||
MappedTypeConstraint = 8,
|
||||
ReturnType = 16,
|
||||
LiteralKeyof = 32,
|
||||
NoConstraints = 64,
|
||||
AlwaysStrict = 128,
|
||||
PriorityImpliesCombination = 56
|
||||
}
|
||||
/** @deprecated Use FileExtensionInfo instead. */
|
||||
type JsFileExtensionInfo = FileExtensionInfo;
|
||||
|
|
13
tests/baselines/reference/api/typescript.d.ts
vendored
13
tests/baselines/reference/api/typescript.d.ts
vendored
|
@ -2413,12 +2413,13 @@ declare namespace ts {
|
|||
enum InferencePriority {
|
||||
NakedTypeVariable = 1,
|
||||
HomomorphicMappedType = 2,
|
||||
MappedTypeConstraint = 4,
|
||||
ReturnType = 8,
|
||||
LiteralKeyof = 16,
|
||||
NoConstraints = 32,
|
||||
AlwaysStrict = 64,
|
||||
PriorityImpliesCombination = 28
|
||||
PartialHomomorphicMappedType = 4,
|
||||
MappedTypeConstraint = 8,
|
||||
ReturnType = 16,
|
||||
LiteralKeyof = 32,
|
||||
NoConstraints = 64,
|
||||
AlwaysStrict = 128,
|
||||
PriorityImpliesCombination = 56
|
||||
}
|
||||
/** @deprecated Use FileExtensionInfo instead. */
|
||||
type JsFileExtensionInfo = FileExtensionInfo;
|
||||
|
|
|
@ -20,7 +20,7 @@ tests/cases/conformance/types/mapped/mappedTypeInferenceErrors.ts(16,9): error T
|
|||
baz: 42
|
||||
~~~
|
||||
!!! error TS2322: Type 'number' is not assignable to type '() => unknown'.
|
||||
!!! related TS6500 tests/cases/conformance/types/mapped/mappedTypeInferenceErrors.ts:16:9: The expected type comes from property 'baz' which is declared here on type 'ComputedOf<{ bar: number; baz: unknown; }>'
|
||||
!!! related TS6500 tests/cases/conformance/types/mapped/mappedTypeInferenceErrors.ts:16:9: The expected type comes from property 'baz' which is declared here on type 'ComputedOf<{ bar: unknown; baz: unknown; }>'
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in a new issue