makeTypesString

  • function
 

Converts an array of typeData to a readable string surrounded by {}.

defaultHelpers.makeTypesString(types)

Converts an array of typeData to a readable string surrounded by {}.

Parameters

  1. types {Array<typeData>}

Returns

{String}

Use

Example:

{{makeTypesString types}}

Where types looks like:

[{type: 'Object'}, {type: 'String'}]

Produces:

'{Object | String}'