11 lines
373 B
Plaintext
11 lines
373 B
Plaintext
|
|
<%
|
||
|
|
const { contract, utils } = it;
|
||
|
|
const { formatDescription, require, _ } = utils;
|
||
|
|
%>
|
||
|
|
export interface <%~ contract.name %> {
|
||
|
|
<% for (const field of contract.$content) { %>
|
||
|
|
<%~ includeFile('./object-field-jsdoc.ejs', { ...it, field }) %>
|
||
|
|
<%~ field.name %><%~ field.isRequired ? '' : '?' %>: <%~ field.value %><%~ field.isNullable ? ' | null' : ''%>;
|
||
|
|
<% } %>
|
||
|
|
}
|