forked from mmistakes/minimal-mistakes
/
url.urlrules.html
829 lines (828 loc) · 45.7 KB
/
url.urlrules.html
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
---
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>UrlRules | @uirouter/react</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="stylesheet" href="../assets/css/uirouter.css">
<script src="../assets/js/modernizr.js"></script>
<script src="../assets/js/reset.js"></script>
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">@uirouter/react</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<!--
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
-->
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Internal UI-Router API</label>
<!--
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
-->
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../index.html">@uirouter/react</a>
</li>
<li>
<a href="../modules/url.html">url</a>
</li>
<li>
<a href="url.urlrules.html">UrlRules</a>
</li>
</ul>
<h1>Class UrlRules</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>API for managing URL rules</p>
</div>
<p>This API is used to create and manage URL rules.
URL rules are a mechanism to respond to specific URL patterns.</p>
<p>The most commonly used methods are <a href="url.urlrules.html#otherwise">otherwise</a> and <a href="url.urlrules.html#when">when</a>.</p>
<p>This API is a property of <a href="url.urlservice.html">UrlService</a> as <a href="url.urlservice.html#rules">UrlService.rules</a></p>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">UrlRules</span>
</li>
</ul>
</section>
<section class="tsd-panel">
<h3>Implements</h3>
<ul class="tsd-hierarchy">
<li><a href="../interfaces/core.disposable.html" class="tsd-signature-type">Disposable</a></li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class"><a href="url.urlrules.html#urlrulefactory" class="tsd-kind-icon">url<wbr>Rule<wbr>Factory</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class"><a href="url.urlrules.html#initial" class="tsd-kind-icon">initial</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="url.urlrules.html#otherwise" class="tsd-kind-icon">otherwise</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="url.urlrules.html#removerule" class="tsd-kind-icon">remove<wbr>Rule</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="url.urlrules.html#rule" class="tsd-kind-icon">rule</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="url.urlrules.html#rules" class="tsd-kind-icon">rules</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="url.urlrules.html#sort" class="tsd-kind-icon">sort</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="url.urlrules.html#when" class="tsd-kind-icon">when</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="urlrulefactory" class="tsd-anchor"></a>
<!--
<h3>url<wbr>Rule<wbr>Factory</h3>
-->
<div class="tsd-signature tsd-kind-icon">url<wbr>Rule<wbr>Factory<span class="tsd-signature-symbol">:</span> <a href="url.urlrulefactory.html" class="tsd-signature-type">UrlRuleFactory</a> <div class="tsd-header">
<p> used to create <a href="../interfaces/url.urlrule.html">UrlRule</a> objects for common cases </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>used to create <a href="../interfaces/url.urlrule.html">UrlRule</a> objects for common cases</p>
</div>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in ui-router-core/src/url/urlRules.ts:81</li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="initial" class="tsd-anchor"></a>
<!--
<h3>initial</h3>
-->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">initial<span class="tsd-signature-symbol">(</span>handler<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/url.urlrulehandlerfn.html" class="tsd-signature-type">UrlRuleHandlerFn</a><span class="tsd-signature-symbol"> | </span><a href="state.targetstate.html" class="tsd-signature-type">TargetState</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/state.targetstatedef.html" class="tsd-signature-type">TargetStateDef</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-header">
<p> Defines the initial state, path, or behavior to use when the app starts. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Defines the initial state, path, or behavior to use when the app starts.</p>
</div>
<p>This rule defines the initial/starting state for the application.</p>
<p>This rule is triggered the first time the URL is checked (when the app initially loads).
The rule is triggered only when the url matches either <code>""</code> or <code>"/"</code>.</p>
<p>Note: The rule is intended to be used when the root of the application is directly linked to.
When the URL is <em>not</em> <code>""</code> or <code>"/"</code> and doesn't match other rules, the <a href="url.urlrules.html#otherwise">otherwise</a> rule is triggered.
This allows 404-like behavior when an unknown URL is deep-linked.</p>
<a href="#example" id="example" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>Start app at <code>home</code> state.</p>
<pre><code class="language-js">.initial({ <span class="hljs-attr">state</span>: <span class="hljs-string">'home'</span> });</code></pre>
<a href="#example-1" id="example-1" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>Start app at <code>/home</code> (by url)</p>
<pre><code class="language-js">.initial(<span class="hljs-string">'/home'</span>);</code></pre>
<a href="#example-2" id="example-2" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>When no other url rule matches, go to <code>home</code> state</p>
<pre><code class="language-js">.initial(<span class="hljs-function">(<span class="hljs-params">matchValue, url, router</span>) =></span> {
<span class="hljs-built_in">console</span>.log(<span class="hljs-string">'initial state'</span>);
<span class="hljs-keyword">return</span> { <span class="hljs-attr">state</span>: <span class="hljs-string">'home'</span> };
})</code></pre>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>handler <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/url.urlrulehandlerfn.html" class="tsd-signature-type">UrlRuleHandlerFn</a><span class="tsd-signature-symbol"> | </span><a href="state.targetstate.html" class="tsd-signature-type">TargetState</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/state.targetstatedef.html" class="tsd-signature-type">TargetStateDef</a></h5>
: <div class="tsd-comment tsd-typography">
<p>The initial state or url path, or a function which returns the state or url path (or performs custom logic).</p>
</div>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in ui-router-core/src/url/urlRules.ts:135</li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="otherwise" class="tsd-anchor"></a>
<!--
<h3>otherwise</h3>
-->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">otherwise<span class="tsd-signature-symbol">(</span>handler<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/url.urlrulehandlerfn.html" class="tsd-signature-type">UrlRuleHandlerFn</a><span class="tsd-signature-symbol"> | </span><a href="state.targetstate.html" class="tsd-signature-type">TargetState</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/state.targetstatedef.html" class="tsd-signature-type">TargetStateDef</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-header">
<p> Defines the state, url, or behavior to use when no other rule matches the URL. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Defines the state, url, or behavior to use when no other rule matches the URL.</p>
</div>
<p>This rule is matched when <em>no other rule</em> matches.
It is generally used to handle unknown URLs (similar to "404" behavior, but on the client side).</p>
<ul>
<li>If <code>handler</code> a string, it is treated as a url redirect</li>
</ul>
<a href="#example" id="example" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>When no other url rule matches, redirect to <code>/index</code></p>
<pre><code class="language-js">.otherwise(<span class="hljs-string">'/index'</span>);</code></pre>
<ul>
<li>If <code>handler</code> is an object with a <code>state</code> property, the state is activated.</li>
</ul>
<a href="#example-1" id="example-1" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>When no other url rule matches, redirect to <code>home</code> and provide a <code>dashboard</code> parameter value.</p>
<pre><code class="language-js">.otherwise({ <span class="hljs-attr">state</span>: <span class="hljs-string">'home'</span>, <span class="hljs-attr">params</span>: { <span class="hljs-attr">dashboard</span>: <span class="hljs-string">'default'</span> } });</code></pre>
<ul>
<li>If <code>handler</code> is a function, the function receives the current url (<a href="../interfaces/url.urlparts.html">UrlParts</a>) and the <a href="components.uirouter.html">UIRouter</a> object.
The function can perform actions, and/or return a value.</li>
</ul>
<a href="#example-2" id="example-2" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>When no other url rule matches, manually trigger a transition to the <code>home</code> state</p>
<pre><code class="language-js">.otherwise(<span class="hljs-function">(<span class="hljs-params">matchValue, urlParts, router</span>) =></span> {
router.stateService.go(<span class="hljs-string">'home'</span>);
});</code></pre>
<a href="#example-3" id="example-3" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>When no other url rule matches, go to <code>home</code> state</p>
<pre><code class="language-js">.otherwise(<span class="hljs-function">(<span class="hljs-params">matchValue, urlParts, router</span>) =></span> {
<span class="hljs-keyword">return</span> { <span class="hljs-attr">state</span>: <span class="hljs-string">'home'</span> };
});</code></pre>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>handler <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/url.urlrulehandlerfn.html" class="tsd-signature-type">UrlRuleHandlerFn</a><span class="tsd-signature-symbol"> | </span><a href="state.targetstate.html" class="tsd-signature-type">TargetState</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/state.targetstatedef.html" class="tsd-signature-type">TargetStateDef</a></h5>
: <div class="tsd-comment tsd-typography">
<p>The url path to redirect to, or a function which returns the url path (or performs custom logic).</p>
</div>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in ui-router-core/src/url/urlRules.ts:186</li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="removerule" class="tsd-anchor"></a>
<!--
<h3>remove<wbr>Rule</h3>
-->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">remove<wbr>Rule<span class="tsd-signature-symbol">(</span>rule<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-header">
<p> Remove a rule previously registered </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Remove a rule previously registered</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>rule <span class="tsd-signature-type">any</span></h5>
: <div class="tsd-comment tsd-typography">
<p>the matcher rule that was previously registered using <a href="url.urlrules.html#rule">rule</a></p>
</div>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in ui-router-core/src/url/urlRules.ts:198</li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="rule" class="tsd-anchor"></a>
<!--
<h3>rule</h3>
-->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">rule<span class="tsd-signature-symbol">(</span>rule<span class="tsd-signature-symbol">: </span><a href="../interfaces/url.urlrule.html" class="tsd-signature-type">UrlRule</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span></li>
<li class="tsd-header">
<p> Manually adds a URL Rule. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Manually adds a URL Rule.</p>
</div>
<p>Usually, a url rule is added using <a href="../interfaces/state.statedeclaration.html#url">StateDeclaration.url</a> or <a href="url.urlrules.html#when">when</a>.
This api can be used directly for more control (to register a <a href="url.baseurlrule.html">BaseUrlRule</a>, for example).
Rules can be created using <a href="url.urlrules.html#urlrulefactory">urlRuleFactory</a>, or created manually as simple objects.</p>
<p>A rule should have a <code>match</code> function which returns truthy if the rule matched.
It should also have a <code>handler</code> function which is invoked if the rule is the best match.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>rule <a href="../interfaces/url.urlrule.html" class="tsd-signature-type">UrlRule</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Function</span></h4>
: <p>a function that deregisters the rule</p>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in ui-router-core/src/url/urlRules.ts:214</li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="rules" class="tsd-anchor"></a>
<!--
<h3>rules</h3>
-->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">rules<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">UrlRule[]</span></li>
<li class="tsd-header">
<p> Gets all registered rules </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Gets all registered rules</p>
</div>
</div>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">UrlRule[]</span></h4>
: <p>an array of all the registered rules</p>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in ui-router-core/src/url/urlRules.ts:230</li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="sort" class="tsd-anchor"></a>
<!--
<h3>sort</h3>
-->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">sort<span class="tsd-signature-symbol">(</span>compareFn<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-header">
<p> Defines URL Rule priorities </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Defines URL Rule priorities</p>
</div>
<p>More than one rule (<a href="../interfaces/url.urlrule.html">UrlRule</a>) might match a given URL.
This <code>compareFn</code> is used to sort the rules by priority.
Higher priority rules should sort earlier.</p>
<p>The <a href="../modules/url.html#defaultrulesortfn">defaultRuleSortFn</a> is used by default.</p>
<p>You only need to call this function once.
The <code>compareFn</code> will be used to sort the rules as each is registered.</p>
<p>If called without any parameter, it will re-sort the rules.</p>
<hr>
<p>Url rules may come from multiple sources: states's urls (<a href="../interfaces/state.statedeclaration.html#url">StateDeclaration.url</a>), <a href="url.urlrules.html#when">when</a>, and <a href="url.urlrules.html#rule">rule</a>.
Each rule has a (user-provided) <a href="../interfaces/url.urlrule.html#priority">UrlRule.priority</a>, a <a href="../interfaces/url.urlrule.html#type">UrlRule.type</a>, and a <a href="../interfaces/url.urlrule.html#_id">UrlRule.$id</a>
The <code>$id</code> is is the order in which the rule was registered.</p>
<p>The sort function should use these data, or data found on a specific type
of <a href="../interfaces/url.urlrule.html">UrlRule</a> (such as <a href="../interfaces/url.staterule.html#state">StateRule.state</a>), to order the rules as desired.</p>
<a href="#example" id="example" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>This compare function prioritizes rules by the order in which the rules were registered.
A rule registered earlier has higher priority.</p>
<pre><code class="language-js"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">compareFn</span>(<span class="hljs-params">a, b</span>) </span>{
<span class="hljs-keyword">return</span> a.$id - b.$id;
}</code></pre>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>compareFn: <span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-signature-type">function</span></h5>
: <div class="tsd-comment tsd-typography">
<p>a function that compares to <a href="../interfaces/url.urlrule.html">UrlRule</a> objects.
The <code>compareFn</code> should abide by the <code>Array.sort</code> compare function rules.
Given two rules, <code>a</code> and <code>b</code>, return a negative number if <code>a</code> should be higher priority.
Return a positive number if <code>b</code> should be higher priority.
Return <code>0</code> if the rules are identical.</p>
<p> See the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Description">mozilla reference</a>
for details.</p>
</div>
<ul class="tsd-parameters">
<li class="tsd-parameter-siganture">
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><a href="../interfaces/url.urlrule.html" class="tsd-signature-type">UrlRule</a>, b<span class="tsd-signature-symbol">: </span><a href="../interfaces/url.urlrule.html" class="tsd-signature-type">UrlRule</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>a <a href="../interfaces/url.urlrule.html" class="tsd-signature-type">UrlRule</a></h5>
</li>
<li>
<h5>b <a href="../interfaces/url.urlrule.html" class="tsd-signature-type">UrlRule</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in ui-router-core/src/url/urlRules.ts:277</li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="when" class="tsd-anchor"></a>
<!--
<h3>when</h3>
-->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">when<span class="tsd-signature-symbol">(</span>matcher<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">RegExp</span><span class="tsd-signature-symbol"> | </span><a href="url.urlmatcher.html" class="tsd-signature-type">UrlMatcher</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, handler<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/url.urlrulehandlerfn.html" class="tsd-signature-type">UrlRuleHandlerFn</a>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/url.urlrule.html" class="tsd-signature-type">UrlRule</a></li>
<li class="tsd-header">
<p> Registers a <code>matcher</code> and <code>handler</code> for custom URLs handling. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Registers a <code>matcher</code> and <code>handler</code> for custom URLs handling.</p>
</div>
<p>The <code>matcher</code> can be:</p>
<ul>
<li>a <a href="url.urlmatcher.html">UrlMatcher</a>: See: <a href="url.urlmatcherfactory.html#compile">UrlMatcherFactory.compile</a></li>
<li>a <code>string</code>: The string is compiled to a <a href="url.urlmatcher.html">UrlMatcher</a></li>
<li>a <code>RegExp</code>: The regexp is used to match the url.</li>
</ul>
<p>The <code>handler</code> can be:</p>
<ul>
<li>a string: The url is redirected to the value of the string.</li>
<li>a function: The url is redirected to the return value of the function.</li>
</ul>
<hr>
<p>When the <code>handler</code> is a <code>string</code> and the <code>matcher</code> is a <code>UrlMatcher</code> (or string), the redirect
string is interpolated with parameter values.</p>
<a href="#example" id="example" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>When the URL is <code>/foo/123</code> the rule will redirect to <code>/bar/123</code>.</p>
<pre><code class="language-js">.when(<span class="hljs-string">"/foo/:param1"</span>, <span class="hljs-string">"/bar/:param1"</span>)</code></pre>
<hr>
<p>When the <code>handler</code> is a string and the <code>matcher</code> is a <code>RegExp</code>, the redirect string is
interpolated with capture groups from the RegExp.</p>
<a href="#example-1" id="example-1" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>When the URL is <code>/foo/123</code> the rule will redirect to <code>/bar/123</code>.</p>
<pre><code class="language-js">.when(<span class="hljs-keyword">new</span> <span class="hljs-built_in">RegExp</span>(<span class="hljs-string">"^/foo/(.*)$"</span>), <span class="hljs-string">"/bar/$1"</span>);</code></pre>
<hr>
<p>When the handler is a function, it receives the matched value, the current URL, and the <code>UIRouter</code> object (See <a href="../interfaces/url.urlrulehandlerfn.html">UrlRuleHandlerFn</a>).
The "matched value" differs based on the <code>matcher</code>.
For <a href="url.urlmatcher.html">UrlMatcher</a>s, it will be the matched state params.
For <code>RegExp</code>, it will be the match array from <code>regexp.exec()</code>.</p>
<p>If the handler returns a string, the URL is redirected to the string.</p>
<a href="#example-2" id="example-2" style="color: inherit; text-decoration: none;">
<h4>Example:</h4>
</a>
<p>When the URL is <code>/foo/123</code> the rule will redirect to <code>/bar/123</code>.</p>
<pre><code class="language-js">.when(<span class="hljs-keyword">new</span> <span class="hljs-built_in">RegExp</span>(<span class="hljs-string">"^/foo/(.*)$"</span>), match => <span class="hljs-string">"/bar/"</span> + match[<span class="hljs-number">1</span>]);</code></pre>
<p>Note: the <code>handler</code> may also invoke arbitrary code, such as <code>$state.go()</code></p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>matcher <span class="tsd-signature-type">RegExp</span><span class="tsd-signature-symbol"> | </span><a href="url.urlmatcher.html" class="tsd-signature-type">UrlMatcher</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5>
: <div class="tsd-comment tsd-typography">
<p>A pattern <code>string</code> to match, compiled as a <a href="url.urlmatcher.html">UrlMatcher</a>, or a <code>RegExp</code>.</p>
</div>
</li>
<li>
<h5>handler <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/url.urlrulehandlerfn.html" class="tsd-signature-type">UrlRuleHandlerFn</a></h5>
: <div class="tsd-comment tsd-typography">
<p>The path to redirect to, or a function that returns the path.</p>
</div>
</li>
<li>
<h5>options: <span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-signature-type">object</span></h5>
: <div class="tsd-comment tsd-typography">
<p><code>{ priority: number }</code></p>
</div>
<ul class="tsd-parameters">
<li class="tsd-parameter">
<h5>priority<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5>
</li>
</ul>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/url.urlrule.html" class="tsd-signature-type">UrlRule</a></h4>
: <p>the registered <a href="../interfaces/url.urlrule.html">UrlRule</a></p>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in ui-router-core/src/url/urlRules.ts:369</li>
</ul>
</aside> </li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../index.html"><em>@uirouter/react</em></a>
</li>
<li class="label tsd-is-external">
<span>Public API</span>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/common.html">common</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/components.html">components</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/core.html">core</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/params.html">params</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/react.html">react</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/resolve.html">resolve</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/state.html">state</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/transition.html">transition</a>
</li>
<li class="current tsd-kind-external-module">
<a href="../modules/url.html">url</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/view.html">view</a>
</li>
<li class="label tsd-is-external">
<span>Internal UI-<wbr><wbr>Router API</span>
</li>
<li class=" tsd-kind-external-module tsd-is-external">
<a href="../modules/_ui_router_core_src_common_trace_.html">"ui-<wbr>router-<wbr>core/src/common/trace"</a>
</li>
<li class=" tsd-kind-external-module tsd-is-external">
<a href="../modules/common_hof.html">common_<wbr>hof</a>
</li>
<li class=" tsd-kind-external-module tsd-is-external">
<a href="../modules/common_predicates.html">common_<wbr>predicates</a>
</li>
<li class=" tsd-kind-external-module tsd-is-external">
<a href="../modules/common_strings.html">common_<wbr>strings</a>
</li>
<li class=" tsd-kind-external-module tsd-is-external">
<a href="../modules/hooks.html">hooks</a>
</li>
<li class=" tsd-kind-external-module tsd-is-external">
<a href="../modules/path.html">path</a>
</li>
<li class=" tsd-kind-external-module tsd-is-external">
<a href="../modules/vanilla.html">vanilla</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-class tsd-parent-kind-external-module tsd-is-external">
<a href="url.baseurlrule.html" class="tsd-kind-icon">Base<wbr>Url<wbr>Rule</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module tsd-is-external">
<a href="url.paramfactory.html" class="tsd-kind-icon">Param<wbr>Factory</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="url.urlconfig.html" class="tsd-kind-icon">Url<wbr>Config</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="url.urlmatcher.html" class="tsd-kind-icon">Url<wbr>Matcher</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module tsd-is-external">
<a href="url.urlmatcherfactory.html" class="tsd-kind-icon">Url<wbr>Matcher<wbr>Factory</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module tsd-is-external">
<a href="url.urlrouter.html" class="tsd-kind-icon">Url<wbr>Router</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module tsd-is-external">
<a href="url.urlrulefactory.html" class="tsd-kind-icon">Url<wbr>Rule<wbr>Factory</a>
</li>
</ul>
<ul class="current">
<li class="current tsd-kind-class tsd-parent-kind-external-module">
<a href="url.urlrules.html" class="tsd-kind-icon">Url<wbr>Rules</a>
<ul>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="url.urlrules.html#urlrulefactory" class="tsd-kind-icon">url<wbr>Rule<wbr>Factory</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="url.urlrules.html#initial" class="tsd-kind-icon">initial</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="url.urlrules.html#otherwise" class="tsd-kind-icon">otherwise</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="url.urlrules.html#removerule" class="tsd-kind-icon">remove<wbr>Rule</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="url.urlrules.html#rule" class="tsd-kind-icon">rule</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="url.urlrules.html#rules" class="tsd-kind-icon">rules</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="url.urlrules.html#sort" class="tsd-kind-icon">sort</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="url.urlrules.html#when" class="tsd-kind-icon">when</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="url.urlservice.html" class="tsd-kind-icon">Url<wbr>Service</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/url.matchresult.html" class="tsd-kind-icon">Match<wbr>Result</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-external">
<a href="../interfaces/url.matcherurlrule.html" class="tsd-kind-icon">Matcher<wbr>Url<wbr>Rule</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-external">
<a href="../interfaces/url.regexprule.html" class="tsd-kind-icon">Reg<wbr>Exp<wbr>Rule</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-external">
<a href="../interfaces/url.staterule.html" class="tsd-kind-icon">State<wbr>Rule</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-external">
<a href="../interfaces/url.urlconfigapi.html" class="tsd-kind-icon">Url<wbr>Config<wbr>Api</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-external">
<a href="../interfaces/url.urlmatchercompileconfig.html" class="tsd-kind-icon">Url<wbr>Matcher<wbr>Compile<wbr>Config</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-external">
<a href="../interfaces/url.urlmatcherconfig.html" class="tsd-kind-icon">Url<wbr>Matcher<wbr>Config</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/url.urlparts.html" class="tsd-kind-icon">Url<wbr>Parts</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/url.urlrule.html" class="tsd-kind-icon">Url<wbr>Rule</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/url.urlrulehandlerfn.html" class="tsd-kind-icon">Url<wbr>Rule<wbr>Handler<wbr>Fn</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/url.urlrulematchfn.html" class="tsd-kind-icon">Url<wbr>Rule<wbr>Match<wbr>Fn</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-external">
<a href="../interfaces/url.urlrulesapi.html" class="tsd-kind-icon">Url<wbr>Rules<wbr>Api</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-external">
<a href="../interfaces/url.urlsyncapi.html" class="tsd-kind-icon">Url<wbr>Sync<wbr>Api</a>
</li>
<li class=" tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-external">
<a href="../modules/url.html#urlruletype" class="tsd-kind-icon">Url<wbr>Rule<wbr>Type</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/url.html#defaultrulesortfn" class="tsd-kind-icon">default<wbr>Rule<wbr>Sort<wbr>Fn</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="http://typedoc.io" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>