Skip to content

Struct Array Alias #59

@przemeklach

Description

@przemeklach

Hi,

Given a struct:

type DeviceListing struct {
	Identifier        string    `json:"identifier"`
	AccountIdentifier string    `json:"accountIdentifier"`
	ContactEmail      string    `json:"contactEmail"`
}

I create two other alias structs:

type CreateListingResponse DeviceListing

type GetDeviceListingsResponse []DeviceListing

The CreateListingResponse Typescript interface is created correctly; however, for GetDeviceListingsResponse it just outputs:

export interface GetDeviceListingsResponse {

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions