Skip to content

tanstack query vue TComposable / DefaultT not resolved #2743

@9M6

Description

@9M6

Description

TCompsable and DefaultT when generating tanstack vue queries not resolved correctly:

Image

Reproducible example or configuration

import { defaultPlugins, defineConfig } from "@hey-api/openapi-ts";
import dotenv from "dotenv";

dotenv.config();

export default defineConfig({
  input: "http://localhost:9000/docs-json",
  output: {
    format: "prettier",
    lint: "eslint",
    path: "sdk",
  },
  plugins: [
    ...defaultPlugins,
    "zod",
    {
      enums: "typescript", // default
      name: "@hey-api/typescript",
    },
    {
      name: "@hey-api/client-nuxt",
      runtimeConfigPath: "./api.config.ts",
    },
    {
      asClass: true, // default
      name: "@hey-api/sdk",
    },
    {
      name: "@tanstack/vue-query",
      mutationOptions: true,
    },
  ],
});

OpenAPI specification (optional)

No response

System information (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Something isn't workingclientClient package related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions