Skip to content

Enable strictFunctionTypes for @babel/types#17906

Merged
JLHwung merged 2 commits intobabel:mainfrom
liuxingbaoyu:types-strictFunctionTypes
Apr 16, 2026
Merged

Enable strictFunctionTypes for @babel/types#17906
JLHwung merged 2 commits intobabel:mainfrom
liuxingbaoyu:types-strictFunctionTypes

Conversation

@liuxingbaoyu
Copy link
Copy Markdown
Member

Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Mar 26, 2026

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/61266

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 26, 2026

Open in StackBlitz

commit: cbca883

Comment on lines 42 to 51
type DefineTypeOpts<T extends t.Node> = {
fields?: FieldDefinitions<T>;
fields?: FieldDefinitions<NoInfer<T>>;
visitor?: string[];
aliases?: string[];
builder?: string[];
inherits?: NodeTypes;
deprecatedAlias?: string;
validate?: Validator<T>;
unionShape?: UnionShape<T>;
validate?: Validator<NoInfer<T>>;
unionShape?: UnionShape<NoInfer<T>>;
};
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Without this optimization, the check time would increase by 30 seconds.

@JLHwung JLHwung merged commit 399603c into babel:main Apr 16, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants