From ccbd9360f9a284dbb8d18007630e1e85e93b1c59 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Fri, 15 Aug 2025 08:46:11 +0800 Subject: [PATCH 1/2] doc: add tanstack-query angular support attribution --- docs/reference/plugins/tanstack-query.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/reference/plugins/tanstack-query.mdx b/docs/reference/plugins/tanstack-query.mdx index b3f40acf..0669fe77 100644 --- a/docs/reference/plugins/tanstack-query.mdx +++ b/docs/reference/plugins/tanstack-query.mdx @@ -38,6 +38,10 @@ npm install --save-dev @zenstackhq/tanstack-query | version | String | Version of TanStack Query to generate for. Choose from "v4" and "v5". Angular supports only "v5" | No | v5 | | portable | Boolean | Include TypeScript types needed to compile the generated code in the output directory. Useful when you output into another project that doesn't reference Prisma and ZenStack. You'll still need to install the "@zenstackhq/tanstack-query" package in that project. | No | false | +:::info +Angular support is contributed by [@ScriptType](https://github.com/ScriptType). +::: + ### Hooks Signature The generated hooks have the following signature convention. From b8d6d845acc9e06b14086aa92aaf4cb10b6582b7 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Fri, 15 Aug 2025 08:49:22 +0800 Subject: [PATCH 2/2] update --- docs/reference/plugins/tanstack-query.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/plugins/tanstack-query.mdx b/docs/reference/plugins/tanstack-query.mdx index 0669fe77..3cb2999e 100644 --- a/docs/reference/plugins/tanstack-query.mdx +++ b/docs/reference/plugins/tanstack-query.mdx @@ -35,7 +35,7 @@ npm install --save-dev @zenstackhq/tanstack-query | -------- | ------- | ------------------------------------------------------- | -------- | ------- | | output | String | Output directory (relative to the path of ZModel) | Yes | | | target | String | Target framework to generate for. Choose from "react", "vue", "svelte", "angular". | Yes | | -| version | String | Version of TanStack Query to generate for. Choose from "v4" and "v5". Angular supports only "v5" | No | v5 | +| version | String | Version of TanStack Query to generate for. Choose from "v4" and "v5". Target "angular" only works with "v5". | No | v5 | | portable | Boolean | Include TypeScript types needed to compile the generated code in the output directory. Useful when you output into another project that doesn't reference Prisma and ZenStack. You'll still need to install the "@zenstackhq/tanstack-query" package in that project. | No | false | :::info