Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iAPI: Refactor types and add a "Core Concepts - Using TypeScript" gui…
…de (#64577) * Initial version * Add a section with instructions to install the package * Add basic create-block template for typescript * Fix all the types * Reorganize the sections on how to type the store * Add a test for when the store is divided into multiple parts * Update the example of when the store is divided into multiple parts * Try a `typed` function to type promises * Refactor derived state and async actions * Add an example casting the entire state * Add entry to the changelog * Add last section and conclusion * Remove the template * Add basic JSDoc for the typed function * Export `typed` * Delete template from manifest * Add the skeleton for TypeScript variant of the template * Add types and global state to the template * Add the scaffolding section again * Add a note and `@since` annotation to the `typed` function to ensure people don’t use it before WP 6.7 * Added typescript guide to the README of Core Concepts, toc.json and manifest.json * Improve iapi type "tests" * Add tsconfig for type tests * REVERTME: Introduce intentional type error * Revert "REVERTME: Introduce intentional type error" This reverts commit ac5590f. * fixup! Merge branch 'trunk' into iapi-docs-typescript-guide * Remove typed function * Remove references to `typed` function from docs * Update and fix changelog --------- Co-authored-by: Grzegorz Ziółkowski <[email protected]> Co-authored-by: JuanMa Garrido <[email protected]> Co-authored-by: Jon Surrell <[email protected]> Co-authored-by: JuanMa <[email protected]> Co-authored-by: luisherranz <[email protected]> Co-authored-by: gziolo <[email protected]> Co-authored-by: juanmaguitar <[email protected]> Co-authored-by: sirreal <[email protected]> Co-authored-by: mirka <[email protected]> Co-authored-by: adamziel <[email protected]> Co-authored-by: michalczaplinski <[email protected]> Co-authored-by: spencerfinnell <[email protected]> Co-authored-by: ryanwelcher <[email protected]>
- Loading branch information