Skip to content

Commit

Permalink
refactor: no need for async promise
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed May 29, 2024
1 parent 55649cf commit 98633e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export declare const ${getDataComposableName(i)}: ${schemaEndpointIds.includes(i
// Add types for Nitro auto-imports and the `#nuxt-api-party/server` module alias
addTemplate({
filename: `module/${moduleName}-nitro.d.ts`,
async getContents() {
getContents() {
return `
// Generated by ${moduleName}
export { ${endpointKeys.map(getRawComposableName).join(', ')} } from './${moduleName}'
Expand Down

0 comments on commit 98633e5

Please sign in to comment.