Skip to content

Accurately reflect return type for reflect() - #577

Merged
filmaj merged 2 commits into
architect:mainfrom
sjorsrijsdam:fix-reflect-return-type
Sep 8, 2026
Merged

Accurately reflect return type for reflect()#577
filmaj merged 2 commits into
architect:mainfrom
sjorsrijsdam:fix-reflect-return-type

Conversation

@sjorsrijsdam

Copy link
Copy Markdown
Contributor

The type definitions for the reflect() method incorrectly defines it as a method that does not return a promise. As such, intellisense marks the await as being not necessary (see screenshot). This PR fixes that discrepancy.

Screenshot 2026-09-05 183718

@filmaj filmaj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

The funny thing is: this API never needed to return a promise. By the time the reflect method is defined, the tables are resolved. Ah well, not worth doing a breaking change or complicating this, I don't think.

@filmaj
filmaj merged commit 4415603 into architect:main Sep 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants