WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.49k stars 4.18k forks source link

TypeScript: Fix and improve types for private-apis #66667

Closed manzoorwanijk closed 20 hours ago

manzoorwanijk commented 1 day ago

What?

This PR converts private-apis package to TypeScript.

Why?

Since private-apis package is used by many other packages, converting this package to TypeScript will pave the way for fixing types on other packages like data and core-data

How?

The PR simply renamed the .js files to .ts and adds the required types to the functions etc.

Testing Instructions

Testing Instructions for Keyboard

Screenshots or screencast

github-actions[bot] commented 1 day ago

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.