gutenberg
gutenberg copied to clipboard
Convert autop package to TypeScript
What?
This PR converts the autop
package to TypeScript.
Why?
Ensures package is fully type checked.
How?
- converted files to
.ts
- added explicit return types for functions
.ts
files - explicitly typed variables that would otherwise be implicit
any
Testing Instructions
npm run test:unit -- packages/autop
tests pass
npm run build:package-types
returns a zero exit code
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: jpstevens <[email protected]>
Co-authored-by: jsnajdr <[email protected]>
Co-authored-by: sirreal <[email protected]>
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.
:wave: Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @jpstevens! In case you missed it, we'd love to have you join us in our Slack community.
If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.
👋 @jpstevens Thanks for this! If you'll update this PR on the latest trunk
and address feedback we can likely give this a final review and land it.