Skip to content

Commit

Permalink
fix: malformed d.ts with multiple APIs with schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmess1221 committed Sep 5, 2023
1 parent 848d9b6 commit 1e2caa3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ export const ${getDataComposableName(i)} = (...args) => _useApiData('${i}', ...a
import type { $Api, $OpenApi, ApiFetchOptions } from '${relativeTo('runtime/composables/$api')}'
import type { UseApiData, UseOpenApiData, UseApiDataOptions } from '${relativeTo('runtime/composables/useApiData')}'
${schemaEndpointIds.map(i => `import type { paths as ${pascalCase(i)}Paths } from '#${moduleName}/${i}'`).join('')}
${schemaEndpointIds.map(i => `
import type { paths as ${pascalCase(i)}Paths } from '#${moduleName}/${i}'
`.trimStart()).join('').trimEnd()}
export type { $Api, $OpenApi, ApiFetchOptions, UseApiData, UseOpenApiData, UseApiDataOptions }
Expand Down

0 comments on commit 1e2caa3

Please sign in to comment.