Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1cd5309

Browse files
authored
1 parent5f183ad commit1cd5309

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

‎src/compiler/checker.ts‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24457,16 +24457,13 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2445724457
}
2445824458
return Ternary.False;
2445924459
}
24460-
if (isObjectLiteralType(target)) {
24460+
if (getObjectFlags(target) & ObjectFlags.FreshLiteral) {
2446124461
for (const sourceProp of excludeProperties(getPropertiesOfType(source), excludedProperties)) {
2446224462
if (!getPropertyOfObjectType(target, sourceProp.escapedName)) {
24463-
const sourceType = getTypeOfSymbol(sourceProp);
24464-
if (!(sourceType.flags & TypeFlags.Undefined)) {
24465-
if (reportErrors) {
24466-
reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target));
24467-
}
24468-
return Ternary.False;
24463+
if (reportErrors) {
24464+
reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target));
2446924465
}
24466+
return Ternary.False;
2447024467
}
2447124468
}
2447224469
}

‎tests/baselines/reference/jsDeclarationsFunctionClassesCjsExportAssignment.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ declare class Context {
210210
*@param {Input} input
211211
*/
212212
constructor(input:Input);
213-
state:any;
213+
state:State;
214214
/**
215215
*@param {Input} input
216216
*@param {HookHandler=} handle

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp