Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed #cocos-engine/16594: Missing abstract keyword for AbstractedConstructor in cc.d.ts #1

Merged
merged 5 commits into from
Apr 19, 2024

Conversation

dumganhar
Copy link
Collaborator

@dumganhar dumganhar commented Apr 19, 2024

Fix: cocos/cocos-engine#16594

The bug was probably trigged by this PR: shrinktofit#26 since it hardcode the modifer to undefined.

@dumganhar dumganhar requested a review from minggo April 19, 2024 08:11
@@ -769,7 +769,7 @@ export function recastTopLevelModule({
);
} else if (ts.isConstructorTypeNode(type)) {
return nodeFactor.createConstructorTypeNode(
undefined,
recastModifiers(type.modifiers),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifier abstract keyword was missing here since it's undefined before.

@dumganhar dumganhar merged commit afe07e5 into cocos:master Apr 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getComponent() can't support abstract class.
2 participants