Skip to content

SES.Template recursively references wrong type #69

Description

@DCzajkowski

This line should reference TemplateInner defined in line 3, but instead references Template.

Expected usage:

import { SES } from 'cloudform'

{
  SesTemplate: new SES.Template({
    Template: {
      HtmlPart: 'String',
      SubjectPart: 'String',
      TemplateName: 'String',
      TextPart: 'String',
    },
  }),
}

Actual usage:

import { SES } from 'cloudform'
import { TemplateInner } from 'cloudform-types/types/ses/template'

{
  SesTemplate: new SES.Template({
    Template: (() => {
      const template: TemplateInner = {
        HtmlPart: 'String',
        SubjectPart: 'String',
        TemplateName: 'String',
        TextPart: 'String',
      }

      return template as SES.Template // This cast is due to incorrect types in cloudform.
    })(),
  }),
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions