-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Interactivity API: Migrate everything to TypeScript, add missing comments and remove the use of "we" #58718
Interactivity API: Migrate everything to TypeScript, add missing comments and remove the use of "we" #58718
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -6 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
00173a0
to
e6c6506
Compare
e6c6506
to
5a7963b
Compare
@@ -268,7 +204,7 @@ const resolve = ( path, namespace ) => { | |||
}; | |||
|
|||
// Generate the evaluate function. | |||
export const getEvaluate: GetEvaluate = | |||
export const getEvaluate: any = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using GetEvaluate is returning this error:
Evaluate; ref: RefObject<HTMLElement>; attributes: createElement.JSX.HTMLAttributes<EventTarget>; }' is not assignable to type 'Scope'.
Types of property 'context' are incompatible.
Type 'DeepSignalObject<{}>' is missing the following properties from type 'Context<any>': Consumer, Provider
407 ? getEvaluate( { scope } )( eachKey[ 0 ] )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take a look, deep signal types can be complex 🙂
Flaky tests detected in 071db98. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7846609718
|
Closing this PR for being outdated. Follow-up PRs will follow. |
What?
Change multiline comments to block comments. Remove "we". Add TypeScript to the Interactivity API runtime.
Why?
Following WordPress contributing standards and code quality.