WPBP / WordPress-Plugin-Boilerplate-Powered

Wordpress Plugin Boilerplate but Powered with examples and a generator!
https://wpbp.github.io/
GNU General Public License v3.0
782 stars 116 forks source link

Add TypeScript typings to boilerplate #236

Closed erikyo closed 1 year ago

erikyo commented 1 year ago

This pull request adds TypeScript typings to the WordPress plugin boilerplate, providing type annotations for key functions and variables in the code. The changes include adding TypeScript declarations for the Plugin class, the Plugin_Options class, and various hooks and filters used throughout the code.

By adding TypeScript typings, this pull request improves code quality and readability, making it easier for developers to understand and extend the plugin boilerplate. The changes also help to catch errors earlier in the development process, reducing the time and effort required for debugging.

Overall, this change represents a significant improvement to the plugin boilerplate, and will help to promote high-quality, reliable WordPress plugins in the future. I hope you enjoyed it too, I look forward to a review!

erikyo commented 1 year ago

cc @johnhooks how it looks in vscode?

johnhooks commented 1 year ago

@erikyo I checked it out and made some updates