Skip to content

Instantly share code, notes, and snippets.

@kermankohli
Created October 28, 2018 07:05
Show Gist options
  • Save kermankohli/c3fc6145749d0dd47ae321ae414b7643 to your computer and use it in GitHub Desktop.
Save kermankohli/c3fc6145749d0dd47ae321ae414b7643 to your computer and use it in GitHub Desktop.
Partials - Return Types
{{#hasReturnValue}}
{{#singleReturnValue}}
{{#returnType outputs.0.type components}}{{/returnType}}
{{/singleReturnValue}}
{{^singleReturnValue}}
[{{#each outputs}}{{#returnType type components}}{{/returnType}}{{#unless @last}}, {{/unless}}{{/each}}]
{{/singleReturnValue}}
{{/hasReturnValue}}
{{^hasReturnValue}}
void
{{/hasReturnValue}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment