Skip to content

Commit

Permalink
generation: Fixes for previous changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Apr 29, 2021
1 parent 611227d commit 1be8b67
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generation/code-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class ServiceCodeGen {
helpers.addDep("s", "./structs.ts");

const chunks = new Array<string>();
chunks.push(`export default class ${namespace} {`);
chunks.push(`export class ${namespace} {`);

const structGen = new StructEmitter(this.apiSpec, this.shapes, helpers, protocol, 's.', this.docMode);
chunks.push(generateApiTypescript(this.apiSpec, this.shapes, helpers, protocol, namespace, 's.', this.docMode));
Expand Down
2 changes: 1 addition & 1 deletion generation/gen-waiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class GenWaiter {
const collapsePathEval = allPaths.length > 1 && allPaths.every(x => x === allPaths[0]);

const inputSignature = [
`RequestConfig`,
// `RequestConfig`,
inputShape?.censoredName ? `${namePrefix}${inputShape?.censoredName}` : false,
].filter(x => x).join(' & ');
const outputSignature = [
Expand Down
1 change: 0 additions & 1 deletion generation/script/update-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ async function generateApi(apisPath: string, apiUid: string, namespace: string,
});

const codeGen = new ServiceCodeGen({
uid: apiUid,
api: JSON.parse(await Deno.readTextFile(jsonPath('normal'))) as Schema.Api,
pagers: JSON.parse(await maybeReadFile(jsonPath('paginators'))) as Schema.Pagination,
waiters: JSON.parse(await maybeReadFile(jsonPath('waiters2'))) as Schema.Waiters,
Expand Down

0 comments on commit 1be8b67

Please sign in to comment.