Add documentation to models.
This commit is contained in:
@@ -64,6 +64,13 @@
|
||||
<code>src/app/_models/account.ts</code>
|
||||
</p>
|
||||
|
||||
<p class="comment">
|
||||
<h3>Description</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<p>Meta object interface </p>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
<section>
|
||||
@@ -243,6 +250,7 @@
|
||||
};
|
||||
}
|
||||
|
||||
/** Meta signature interface */
|
||||
interface Signature {
|
||||
algo: string;
|
||||
data: string;
|
||||
@@ -250,17 +258,20 @@ interface Signature {
|
||||
engine: string;
|
||||
}
|
||||
|
||||
/** Meta object interface */
|
||||
interface Meta {
|
||||
data: AccountDetails;
|
||||
id: string;
|
||||
signature: Signature;
|
||||
}
|
||||
|
||||
/** Meta response interface */
|
||||
interface MetaResponse {
|
||||
id: string;
|
||||
m: Meta;
|
||||
}
|
||||
|
||||
/** Default account data object */
|
||||
const defaultAccount: AccountDetails = {
|
||||
date_registered: Date.now(),
|
||||
gender: 'other',
|
||||
@@ -308,7 +319,8 @@ const defaultAccount: AccountDetails = {
|
||||
},
|
||||
};
|
||||
|
||||
export { AccountDetails, Signature, Meta, MetaResponse, defaultAccount };
|
||||
/** @exports */
|
||||
export { AccountDetails, Meta, MetaResponse, Signature, defaultAccount };
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user