Skip to content

Commit

Permalink
Moved code around to add clairity
Browse files Browse the repository at this point in the history
  • Loading branch information
PastelStoic committed Jul 3, 2023
1 parent d0b87c0 commit a3a4208
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/generate/src/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ ${functionBody}
}
`;

const denoImpl = `
// deno-lint-ignore-file require-await
${tsImpl}`;

const jsImpl = `async function ${functionName}(client${
hasArgs ? `, args` : ""
}) {
Expand Down Expand Up @@ -275,7 +279,7 @@ export function ${functionName}(client: Executor${
return [
{
path: `${outputBaseFileName}.ts`,
contents: "// deno-lint-ignore-file require-await\n" + tsImpl,
contents: denoImpl,
imports: tsImports,
extension: ".ts",
},
Expand Down

0 comments on commit a3a4208

Please sign in to comment.