Skip to content

[]interface{} not converted to any[] #24

@jfsiii

Description

@jfsiii

From #13 (comment)

A struct with

Vars           []map[string]interface{} `config:"vars" json:"vars,omitempty"`

is converted to:

vars?: map[string]interface {}[];

instead of

vars?: { [key: string]: any }[];

but if we drop the array

Vars           map[string]interface{} `config:"vars" json:"vars,omitempty"`

it's converted to

vars?: { [key: string]: any };

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