INNER CODE UNIT · TypeScript

generateModel

jianyuan/terraform-provider-sentry · internal/providergen/index.ts:214

function generateModel({
  name,
  attributes,
  srcModel,
  generateFillers,
}: {
  name: string;
  attributes: Array<Attribute>;
  srcModel: string;
  generateFillers: boolean;
}) {
  const structLines: string[] = [];
  const fillerLines: string[] = [];
  const extras: string[] = [];

  for (const attribute of attributes) {
    structLines.push(
      `${camelize(attribute.name)} ${tfAttributeValueType(attribute, name)} \`tfsdk:"${attribute.name}"\``,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…