Skip to content

Commit

Permalink
add chrome-promise types
Browse files Browse the repository at this point in the history
  • Loading branch information
opus1269 committed May 19, 2019
1 parent 765675f commit 9b37962
Show file tree
Hide file tree
Showing 33 changed files with 261 additions and 235 deletions.
2 changes: 1 addition & 1 deletion docs/gen/assets/js/search.js

Large diffs are not rendered by default.

21 changes: 9 additions & 12 deletions docs/gen/classes/chrome_last_error.chromelasterror.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/last_error.ts#L75">last_error.ts:75</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/last_error.ts#L75">last_error.ts:75</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -206,7 +206,7 @@ <h3>title</h3>
<div class="tsd-signature tsd-kind-icon">title<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/last_error.ts#L75">last_error.ts:75</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/last_error.ts#L75">last_error.ts:75</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -238,7 +238,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> load</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/last_error.ts#L37">last_error.ts:37</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/last_error.ts#L37">last_error.ts:37</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -260,13 +260,13 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</
<a name="reset" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> reset</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
<li class="tsd-signature tsd-kind-icon">reset<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-signature tsd-kind-icon">reset<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/last_error.ts#L69">last_error.ts:69</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/last_error.ts#L69">last_error.ts:69</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -279,21 +279,21 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> reset</h3>
</dd>
</dl>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
<a name="save" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> save</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
<li class="tsd-signature tsd-kind-icon">save<span class="tsd-signature-symbol">(</span>lastError<span class="tsd-signature-symbol">: </span><a href="chrome_last_error.chromelasterror.html" class="tsd-signature-type">ChromeLastError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-signature tsd-kind-icon">save<span class="tsd-signature-symbol">(</span>lastError<span class="tsd-signature-symbol">: </span><a href="chrome_last_error.chromelasterror.html" class="tsd-signature-type">ChromeLastError</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/last_error.ts#L53">last_error.ts:53</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/last_error.ts#L53">last_error.ts:53</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -312,7 +312,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5>lastError: <a href="chrome_last_error.chromelasterror.html" class="tsd-signature-type">ChromeLastError</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
</li>
</ul>
</section>
Expand Down Expand Up @@ -400,9 +400,6 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/chrome_last_error.html#chromepromise" class="tsd-kind-icon">Chrome<wbr>Promise</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/chrome_last_error.html#chromep" class="tsd-kind-icon">chromep</a>
</li>
Expand Down
32 changes: 16 additions & 16 deletions docs/gen/classes/chrome_time.chrometime.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L160">time.ts:160</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L160">time.ts:160</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -171,7 +171,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> _hr</h3>
<div class="tsd-signature tsd-kind-icon">_hr<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L157">time.ts:157</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L157">time.ts:157</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -186,7 +186,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> _min</h3>
<div class="tsd-signature tsd-kind-icon">_min<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L160">time.ts:160</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L160">time.ts:160</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -208,7 +208,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> MIN_<wbr>IN_<wbr>DAY</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L44">time.ts:44</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L44">time.ts:44</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -230,7 +230,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> MIN_<wbr>IN_<wbr>HOUR</h3
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L34">time.ts:34</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L34">time.ts:34</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -252,7 +252,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> MSEC_<wbr>IN_<wbr>DAY</h3
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L49">time.ts:49</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L49">time.ts:49</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -274,7 +274,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> MSEC_<wbr>IN_<wbr>HOUR</h
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L39">time.ts:39</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L39">time.ts:39</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -296,7 +296,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> MSEC_<wbr>IN_<wbr>MIN</h3
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L29">time.ts:29</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L29">time.ts:29</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -321,7 +321,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> parse</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L207">time.ts:207</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L207">time.ts:207</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -352,7 +352,7 @@ <h3>to<wbr>String</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L177">time.ts:177</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L177">time.ts:177</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -384,7 +384,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>String<wbr>Full</
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L120">time.ts:120</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L120">time.ts:120</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -422,7 +422,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>String<wbr>Short<
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L131">time.ts:131</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L131">time.ts:131</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -454,7 +454,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Time</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L59">time.ts:59</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L59">time.ts:59</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -486,7 +486,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Time<wbr>Delta</h
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L75">time.ts:75</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L75">time.ts:75</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -518,7 +518,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L148">time.ts:148</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L148">time.ts:148</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -550,7 +550,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> is<wbr>InRange</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L93">time.ts:93</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L93">time.ts:93</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
6 changes: 3 additions & 3 deletions docs/gen/enums/chrome_time.time_format.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h3>HR_<wbr>12</h3>
<div class="tsd-signature tsd-kind-icon">HR_<wbr>12<span class="tsd-signature-symbol">:</span> </div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L22">time.ts:22</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L22">time.ts:22</a></li>
</ul>
</aside>
</section>
Expand All @@ -109,7 +109,7 @@ <h3>HR_<wbr>24</h3>
<div class="tsd-signature tsd-kind-icon">HR_<wbr>24<span class="tsd-signature-symbol">:</span> </div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L23">time.ts:23</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L23">time.ts:23</a></li>
</ul>
</aside>
</section>
Expand All @@ -119,7 +119,7 @@ <h3>NONE</h3>
<div class="tsd-signature tsd-kind-icon">NONE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> =&nbsp;0</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/time.ts#L21">time.ts:21</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/time.ts#L21">time.ts:21</a></li>
</ul>
</aside>
</section>
Expand Down
6 changes: 3 additions & 3 deletions docs/gen/interfaces/chrome_analytics.ieventtype.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h3>event<wbr>Action</h3>
<div class="tsd-signature tsd-kind-icon">event<wbr>Action<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/analytics.ts#L24">analytics.ts:24</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/analytics.ts#L24">analytics.ts:24</a></li>
</ul>
</aside>
</section>
Expand All @@ -117,7 +117,7 @@ <h3>event<wbr>Category</h3>
<div class="tsd-signature tsd-kind-icon">event<wbr>Category<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/analytics.ts#L23">analytics.ts:23</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/analytics.ts#L23">analytics.ts:23</a></li>
</ul>
</aside>
</section>
Expand All @@ -127,7 +127,7 @@ <h3>event<wbr>Label</h3>
<div class="tsd-signature tsd-kind-icon">event<wbr>Label<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/f945de5/src/analytics.ts#L25">analytics.ts:25</a></li>
<li>Defined in <a href="https://github.com/opus1269/chrome-ext-utils/blob/765675f/src/analytics.ts#L25">analytics.ts:25</a></li>
</ul>
</aside>
</section>
Expand Down
Loading

0 comments on commit 9b37962

Please sign in to comment.