json_typegen icon indicating copy to clipboard operation
json_typegen copied to clipboard

Type parameter hints

Open evestera opened this issue 4 years ago • 0 comments

E.g.

{
  "/hits/hits/-/_source": {
    "type_parameter": "T"
  }
}

or

{
  "/hits/hits/-/_source": {
    "use_type": "type_parameter"
  }
}

For typescript/typealias this is already possible with just adding <T> to the type name and using

{
  "/hits/hits/-/_source": {
    "use_type": "T"
  }
}

evestera avatar Mar 21 '21 23:03 evestera