forked from swiftwasm/JavaScriptKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
143 lines (130 loc) · 6.07 KB
/
Copy pathindex.html
File metadata and controls
143 lines (130 loc) · 6.07 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScriptKit - ConvertibleToJSValue</title>
<link rel="stylesheet" type="text/css" href="/JavaScriptKit/all.css" media="all" />
</head>
<body>
<header>
<a href="/JavaScriptKit">
<strong>
JavaScriptKit
</strong>
<span>Documentation</span>
</a>
</header>
<!--
<form class="search">
<input type="search" placeholder="Search" />
</form>
-->
<nav>
<div class="wrapper">
<h2>On This Page</h2>
<ol><li><a href="#relationships">Relationships</a><ul><li><a href="#relationships">Types Conforming to ConvertibleToJSValue</a></li></ul></li><li><a href="#requirements">Requirements</a><ul><li class="function"><a href="#convertibletojsvalue.jsvalue()">jsValue()</a></li></ul></li></ol>
</div>
</nav>
<main>
<article>
<h1>
<small>Protocol</small>
<code class="name">ConvertibleToJSValue</code>
</h1>
<div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">protocol</span> <span class="type">ConvertibleToJSValue</span> </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
<p>Objects that can be converted to a JavaScript value, preferably in a lossless manner.</p>
</div>
<section id="relationships">
<h2 hidden>Relationships</h2>
<figure>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.40.1 (20161225.0304)
-->
<!-- Title: %53 Pages: 1 -->
<svg width="872pt" height="116pt"
viewBox="0.00 0.00 872.00 116.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 112)">
<title>%53</title>
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-112 868,-112 868,4 -4,4"/>
<!-- ConvertibleToJSValue -->
<g id="node1" class="node protocol current">
<title>ConvertibleToJSValue</title>
<g id="a_node1"><a xlink:href="/JavaScriptKit/ConvertibleToJSValue" xlink:title="ConvertibleToJSValue">
<path fill="none" stroke="#000000" stroke-width="3" d="M528,-36C528,-36 336,-36 336,-36 330,-36 324,-30 324,-24 324,-24 324,-12 324,-12 324,-6 330,0 336,0 336,0 528,0 528,0 534,0 540,-6 540,-12 540,-12 540,-24 540,-24 540,-30 534,-36 528,-36"/>
<text text-anchor="middle" x="432" y="-14.3" font-family="Menlo" font-size="14.00" fill="#000000">ConvertibleToJSValue</text>
</a>
</g>
</g>
<!-- TypedArrayElement -->
<g id="node2" class="node protocol">
<title>TypedArrayElement</title>
<g id="a_node2"><a xlink:href="/JavaScriptKit/TypedArrayElement" xlink:title="TypedArrayElement">
<path fill="none" stroke="#000000" d="M303,-108C303,-108 111,-108 111,-108 105,-108 99,-102 99,-96 99,-96 99,-84 99,-84 99,-78 105,-72 111,-72 111,-72 303,-72 303,-72 309,-72 315,-78 315,-84 315,-84 315,-96 315,-96 315,-102 309,-108 303,-108"/>
<text text-anchor="middle" x="207" y="-86.3" font-family="Menlo" font-size="14.00" fill="#000000">TypedArrayElement</text>
</a>
</g>
</g>
<!-- TypedArrayElement->ConvertibleToJSValue -->
<g id="edge1" class="edge conformsTo">
<title>TypedArrayElement->ConvertibleToJSValue</title>
<path fill="none" stroke="#000000" d="M263.4866,-71.9243C294.5129,-61.9959 333.1703,-49.6255 365.6306,-39.2382"/>
<polygon fill="#000000" stroke="#000000" points="367.0327,-42.4645 375.4902,-36.0831 364.8992,-35.7975 367.0327,-42.4645"/>
</g>
<!-- JSString -->
<g id="node3" class="node structure">
<title>JSString</title>
<g id="a_node3"><a xlink:href="/JavaScriptKit/JSString" xlink:title="JSString">
<path fill="none" stroke="#000000" d="M753,-108C753,-108 561,-108 561,-108 555,-108 549,-102 549,-96 549,-96 549,-84 549,-84 549,-78 555,-72 561,-72 561,-72 753,-72 753,-72 759,-72 765,-78 765,-84 765,-84 765,-96 765,-96 765,-102 759,-108 753,-108"/>
<text text-anchor="middle" x="657" y="-86.3" font-family="Menlo" font-size="14.00" fill="#000000">JSString</text>
</a>
</g>
</g>
<!-- JSString->ConvertibleToJSValue -->
<g id="edge2" class="edge conformsTo">
<title>JSString->ConvertibleToJSValue</title>
<path fill="none" stroke="#000000" d="M600.5134,-71.9243C569.4871,-61.9959 530.8297,-49.6255 498.3694,-39.2382"/>
<polygon fill="#000000" stroke="#000000" points="499.1008,-35.7975 488.5098,-36.0831 496.9673,-42.4645 499.1008,-35.7975"/>
</g>
</g>
</svg>
<figcaption hidden>Inheritance graph for ConvertibleToJSValue.</figcaption>
</figure>
<h3>Types Conforming to <code>ConvertibleToJSValue</code></h3>
<dl>
<dt class="protocol"><code><a href="/JavaScriptKit/TypedArrayElement">TypedArrayElement</a></code></dt>
<dd><p>A protocol that allows a Swift numeric type to be mapped to the JavaScript TypedArray that holds integers of its type</p>
</dd>
<dt class="structure"><code><a href="/JavaScriptKit/JSString">JSString</a></code></dt>
<dd><p><code>JSString</code> represents a string in JavaScript and supports bridging string between JavaScript and Swift.</p>
</dd>
</dl>
</section>
<section id="requirements">
<h2>Requirements</h2>
<div role="article" class="function" id="convertibletojsvalue.jsvalue()">
<h3>
<code>jsValue()</code>
</h3>
<div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">func</span> <span class="function">jsValue</span>() -> <a href="/JavaScriptKit/JSValue"><span class="type">JSValue</span></a></body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
<p>Create a JSValue that represents this object</p>
</div>
</div>
</section>
</article>
</main>
<footer>
<p>
Generated on <time datetime="2022-02-22T15:19:50+0000">February 22, 2022</time> using <a href="https://github.com/SwiftDocOrg/swift-doc">swift-doc</a> <span class="version">1.0.0-rc.1</span>.
</p>
</footer>
</body>
</html>