Skip to content

Allow types for onClone to return a promise - #3162

Open
lukeapage wants to merge 1 commit into
niklasvh:masterfrom
lukeapage:lukeapage-patch-1
Open

Allow types for onClone to return a promise#3162
lukeapage wants to merge 1 commit into
niklasvh:masterfrom
lukeapage:lukeapage-patch-1

Conversation

@lukeapage

Copy link
Copy Markdown

Summary

onClone is returned to a promise, so returning a promise already works, but the type is void. Typescript does not error returning a promise today, but sonar qube does find a "bug" because it thinks you return a promise where you shouldn't.

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.

1 participant