forked from SecuX/secux-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi_type.hbs
25 lines (22 loc) · 916 Bytes
/
api_type.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Types
{{#globals kind="typedef"}}
{{>header~}}
{{#if description}}*{{{inlineLinks description}}}*{{/if}}
{{#if properties}}
{{#if (optionEquals "property-list-format" "list")}}
{{#each properties~}}
{{#if (regexp-test name "\w+\.\w+")}} {{/if}}- {{{name}}} {{>linked-type-list types=type.names delimiter=" \| " ~}}{{#if description}} - {{{inlineLinks description}}}{{/if}}
{{/each}}
{{/if~}}
{{#if (optionEquals "property-list-format" "table")~}}
{{tableHead properties "name|Name" "type|Type" "defaultvalue|Default" "description|Description" ~}}
{{#tableRow properties "name" "type" "defaultvalue" "description" ~}}
| {{#if @col1}}{{>param-table-name}} | {{/if~}}
{{#if @col2}}{{>linked-type-list types=type.names delimiter=" \| " }} | {{/if~}}
{{#if @col3}}{{>defaultvalue}} | {{/if~}}
{{#if @col4}}{{{stripNewlines (inlineLinks description)}}} |{{/if}}
{{/tableRow}}
{{/if~}}
{{/if~}}
<br/>
{{/globals}}