From bfa135a566582a04abe0a2ee0c16d424ddc456d9 Mon Sep 17 00:00:00 2001 From: Mark DeCrane Date: Mon, 16 Oct 2023 10:03:43 -0400 Subject: [PATCH] chore: run format --- CHANGELOG.md | 1 + .../get/generator/models/attribute-model.ts | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a36116dd7..2d258d3654 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Since the long-term support for Node.js 16 ended on 2023-09-11, we updated our m ### Potential provider naming collision with instance function `moveTo` on `TerraformResource` We have added support for resource refactoring and renaming with the addition of the instance function `moveTo` on `TerraformResource`. We forsee the potential for naming collision with providers using `moveTo` as an attribute. In instances where provider bindings fail to compile due to the collision, regenerate your provider bindings and replace the provider related usage of `moveTo` to `moveToAttribute` in your configuration if applicable. + ### Java: `codeMakerOutput` needs to be set to a company identifier We did not honor the `codeMakerOutput` setting in the `cdktf.json` previously, this is fixed now. diff --git a/packages/@cdktf/provider-generator/lib/get/generator/models/attribute-model.ts b/packages/@cdktf/provider-generator/lib/get/generator/models/attribute-model.ts index 1a22f3fa8d..52d3ce30c5 100644 --- a/packages/@cdktf/provider-generator/lib/get/generator/models/attribute-model.ts +++ b/packages/@cdktf/provider-generator/lib/get/generator/models/attribute-model.ts @@ -5,14 +5,14 @@ import { AttributeTypeModel } from "./attribute-type-model"; export type GetterType = | { _type: "plain" } | { - _type: "args"; - args: string; - returnType?: string; - returnStatement: string; - } + _type: "args"; + args: string; + returnType?: string; + returnStatement: string; + } | { - _type: "stored_class"; - }; + _type: "stored_class"; + }; export type SetterType = | { _type: "none" } @@ -144,8 +144,9 @@ export class AttributeModel { return { _type: "set", - type: `${this.type.inputTypeDefinition}${this.isProvider ? " | undefined" : "" - }`, + type: `${this.type.inputTypeDefinition}${ + this.isProvider ? " | undefined" : "" + }`, }; }