wp-types

JSON →
library 4.70.1 ·javascript
verified Jun 7, 2026

TypeScript definitions for WordPress PHP objects and REST API responses (v4.70.1). Provides well-documented interfaces for WP_Post, WP_Term, WP_User, WP_Comment, WP_Error, WP_Query, WP_Block, and 30+ REST API endpoints including blocks, menus, templates, global styles, fonts, and media. Updated for WordPress 7.0. Released monthly via npm with semantic versioning. Differentiator: comprehensive coverage of WordPress core data structures and REST API schemas, auto-generated from WordPress source, with TypeScript 5.x support.