Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
chore: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 15, 2024
1 parent cf464aa commit b1a9408
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<link rel="stylesheet" href="../../../style-rich.css" /><pre class="shiki vitesse-dark twoslash lsp" style="background-color:#121212;color:#dbd7caee" tabindex="0"><code><span class="line"><span style="color:#BD976A">console</span><span style="color:#666666">.</span><span style="color:#BD976A"><span>e<span class="twoslash-completions-list"><ul><li><span class="twoslash-completions-icon completions-method"><svg viewBox="0 0 32 32"><path fill="currentColor" d="m19.626 29.526l-.516-1.933a12.004 12.004 0 0 0 6.121-19.26l1.538-1.28a14.003 14.003 0 0 1-7.143 22.473"></path><path fill="currentColor" d="M10 29H8v-3.82l.804-.16C10.262 24.727 12 23.62 12 20v-1.382l-4-2v-2.236l4-2V12c0-5.467 3.925-9 10-9h2v3.82l-.804.16C21.738 7.273 20 8.38 20 12v.382l4 2v2.236l-4 2V20c0 5.467-3.925 9-10 9m0-2c4.935 0 8-2.682 8-7v-2.618l3.764-1.882L18 13.618V12c0-4.578 2.385-6.192 4-6.76V5c-4.935 0-8 2.682-8 7v1.618L10.236 15.5L14 17.382V20c0 4.578-2.385 6.192-4 6.76Z"></path><path fill="currentColor" d="M5.231 24.947a14.003 14.003 0 0 1 7.147-22.474l.516 1.932a12.004 12.004 0 0 0-6.125 19.263Z"></path></svg></span><span><span class="twoslash-completions-matched">e</span><span class="twoslash-completions-unmatched">rror</span></span></li></ul></span></span></span></span>
<link rel="stylesheet" href="../../../style-rich.css" /><pre class="shiki vitesse-dark twoslash lsp" style="background-color:#121212;color:#dbd7caee" tabindex="0"><code><span class="line"><span style="color:#BD976A">console</span><span style="color:#666666">.</span><span style="color:#BD976A"><span>e<span class="twoslash-completion-cursor"><ul class="twoslash-completion-list"><li><span class="twoslash-completions-icon completions-method"><svg viewBox="0 0 32 32"><path fill="currentColor" d="m19.626 29.526l-.516-1.933a12.004 12.004 0 0 0 6.121-19.26l1.538-1.28a14.003 14.003 0 0 1-7.143 22.473"></path><path fill="currentColor" d="M10 29H8v-3.82l.804-.16C10.262 24.727 12 23.62 12 20v-1.382l-4-2v-2.236l4-2V12c0-5.467 3.925-9 10-9h2v3.82l-.804.16C21.738 7.273 20 8.38 20 12v.382l4 2v2.236l-4 2V20c0 5.467-3.925 9-10 9m0-2c4.935 0 8-2.682 8-7v-2.618l3.764-1.882L18 13.618V12c0-4.578 2.385-6.192 4-6.76V5c-4.935 0-8 2.682-8 7v1.618L10.236 15.5L14 17.382V20c0 4.578-2.385 6.192-4 6.76Z"></path><path fill="currentColor" d="M5.231 24.947a14.003 14.003 0 0 1 7.147-22.474l.516 1.932a12.004 12.004 0 0 0-6.125 19.263Z"></path></svg></span><span><span class="twoslash-completions-matched">e</span><span class="twoslash-completions-unmatched">rror</span></span></li></ul></span></span></span></span>
<span class="line"></span></code></pre>
2 changes: 1 addition & 1 deletion packages/shikiji-twoslash/test/out/rich/no-icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<span class="line"><span> </span><span style="color:#D8DEE9FF">boo</span><span style="color:#81A1C1">:</span><span style="color:#D8DEE9FF"> </span><span style="color:#8FBCBB">number</span><span style="color:#81A1C1">;</span></span>
<span class="line"><span style="color:#D8DEE9FF"> </span><span style="color:#88C0D0">bar</span><span style="color:#81A1C1">:</span><span style="color:#D8DEE9FF"> </span><span style="color:#ECEFF4">()</span><span style="color:#D8DEE9FF"> </span><span style="color:#81A1C1">=></span><span style="color:#D8DEE9FF"> </span><span style="color:#8FBCBB">number</span><span style="color:#81A1C1">;</span></span>
<span class="line"><span> </span><span style="color:#D8DEE9FF">baz</span><span style="color:#81A1C1">:</span><span style="color:#D8DEE9FF"> </span><span style="color:#8FBCBB">string</span><span style="color:#81A1C1">;</span></span>
<span class="line"><span style="color:#ECEFF4">}</span></span></span>obj</span></span><span style="color:#ECEFF4">.</span><span style="color:#D8DEE9"><span>b<span class="twoslash-completions-list"><ul><li><span><span class="twoslash-completions-matched">b</span><span class="twoslash-completions-unmatched">ar</span></span></li><li><span><span class="twoslash-completions-matched">b</span><span class="twoslash-completions-unmatched">az</span></span></li><li><span><span class="twoslash-completions-matched">b</span><span class="twoslash-completions-unmatched">oo</span></span></li></ul></span>oo</span></span></span>
<span class="line"><span style="color:#ECEFF4">}</span></span></span>obj</span></span><span style="color:#ECEFF4">.</span><span style="color:#D8DEE9"><span>b<span class="twoslash-completion-cursor"><ul class="twoslash-completion-list"><li><span><span class="twoslash-completions-matched">b</span><span class="twoslash-completions-unmatched">ar</span></span></li><li><span><span class="twoslash-completions-matched">b</span><span class="twoslash-completions-unmatched">az</span></span></li><li><span><span class="twoslash-completions-matched">b</span><span class="twoslash-completions-unmatched">oo</span></span></li></ul></span>oo</span></span></span>
<span class="line"></span></code></pre><style>:root {--twoslash-popup-bg: #2e3440;}</style>
<script>
function toggleColor() {
Expand Down
2 changes: 1 addition & 1 deletion packages/shikiji-twoslash/test/out/rich/rich.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="line"><span style="--shiki-dark:#666666;--shiki-light:#999999">};</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48"><span class="twoslash-hover"><span class="twoslash-popup-info"><span class="line"><span style="--shiki-dark:#CB7676;--shiki-light:#AB5959">const</span><span> </span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48">todo</span><span style="--shiki-dark:#666666;--shiki-light:#999999">:</span><span> </span><span style="--shiki-dark:#5DA994;--shiki-light:#2E8F82">Readonly</span><span style="--shiki-dark:#666666;--shiki-light:#999999">&#x3C;</span><span style="--shiki-dark:#5DA994;--shiki-light:#2E8F82">Todo</span><span style="--shiki-dark:#666666;--shiki-light:#999999">></span></span></span>todo</span></span><span style="--shiki-dark:#666666;--shiki-light:#999999">.</span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48"><span class="twoslash-error">title</span></span><span style="--shiki-dark:#DBD7CAEE;--shiki-light:#393A34"> </span><span style="--shiki-dark:#666666;--shiki-light:#999999">=</span><span style="--shiki-dark:#DBD7CAEE;--shiki-light:#393A34"> </span><span style="--shiki-dark:#C98A7D99;--shiki-light:#B5695999">"</span><span style="--shiki-dark:#C98A7D;--shiki-light:#B56959">Hello</span><span style="--shiki-dark:#C98A7D99;--shiki-light:#B5695999">"</span><span style="--shiki-dark:#666666;--shiki-light:#999999">;</span></span><div class="twoslash-meta-line twoslash-error-line">Cannot assign to 'title' because it is a read-only property.</div><span class="line"></span>
<span class="line"><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48"><span class="twoslash-hover"><span class="twoslash-popup-info"><span class="line"><span style="--shiki-dark:#CB7676;--shiki-light:#AB5959">var</span><span> </span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48">Number</span><span style="--shiki-dark:#666666;--shiki-light:#999999">:</span><span> </span><span style="--shiki-dark:#5DA994;--shiki-light:#2E8F82">NumberConstructor</span></span><div class="twoslash-popup-jsdoc">An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers.</div></span>Number</span></span><span style="--shiki-dark:#666666;--shiki-light:#999999">.</span><span style="--shiki-dark:#80A665;--shiki-light:#59873A"><span>p<span class="twoslash-completions-list"><ul><li><span class="twoslash-completions-icon completions-method"><svg viewBox="0 0 32 32"><path fill="currentColor" d="m19.626 29.526l-.516-1.933a12.004 12.004 0 0 0 6.121-19.26l1.538-1.28a14.003 14.003 0 0 1-7.143 22.473"></path><path fill="currentColor" d="M10 29H8v-3.82l.804-.16C10.262 24.727 12 23.62 12 20v-1.382l-4-2v-2.236l4-2V12c0-5.467 3.925-9 10-9h2v3.82l-.804.16C21.738 7.273 20 8.38 20 12v.382l4 2v2.236l-4 2V20c0 5.467-3.925 9-10 9m0-2c4.935 0 8-2.682 8-7v-2.618l3.764-1.882L18 13.618V12c0-4.578 2.385-6.192 4-6.76V5c-4.935 0-8 2.682-8 7v1.618L10.236 15.5L14 17.382V20c0 4.578-2.385 6.192-4 6.76Z"></path><path fill="currentColor" d="M5.231 24.947a14.003 14.003 0 0 1 7.147-22.474l.516 1.932a12.004 12.004 0 0 0-6.125 19.263Z"></path></svg></span><span><span class="twoslash-completions-matched">p</span><span class="twoslash-completions-unmatched">arseFloat</span></span></li><li><span class="twoslash-completions-icon completions-method"><svg viewBox="0 0 32 32"><path fill="currentColor" d="m19.626 29.526l-.516-1.933a12.004 12.004 0 0 0 6.121-19.26l1.538-1.28a14.003 14.003 0 0 1-7.143 22.473"></path><path fill="currentColor" d="M10 29H8v-3.82l.804-.16C10.262 24.727 12 23.62 12 20v-1.382l-4-2v-2.236l4-2V12c0-5.467 3.925-9 10-9h2v3.82l-.804.16C21.738 7.273 20 8.38 20 12v.382l4 2v2.236l-4 2V20c0 5.467-3.925 9-10 9m0-2c4.935 0 8-2.682 8-7v-2.618l3.764-1.882L18 13.618V12c0-4.578 2.385-6.192 4-6.76V5c-4.935 0-8 2.682-8 7v1.618L10.236 15.5L14 17.382V20c0 4.578-2.385 6.192-4 6.76Z"></path><path fill="currentColor" d="M5.231 24.947a14.003 14.003 0 0 1 7.147-22.474l.516 1.932a12.004 12.004 0 0 0-6.125 19.263Z"></path></svg></span><span><span class="twoslash-completions-matched">p</span><span class="twoslash-completions-unmatched">arseInt</span></span></li><li><span class="twoslash-completions-icon completions-property"><svg viewBox="0 0 32 32"><path fill="currentColor" d="M12.1 2a9.8 9.8 0 0 0-5.4 1.6l6.4 6.4a2.1 2.1 0 0 1 .2 3a2.1 2.1 0 0 1-3-.2L3.7 6.4A9.84 9.84 0 0 0 2 12.1a10.14 10.14 0 0 0 10.1 10.1a10.9 10.9 0 0 0 2.6-.3l6.7 6.7a5 5 0 0 0 7.1-7.1l-6.7-6.7a10.9 10.9 0 0 0 .3-2.6A10 10 0 0 0 12.1 2m8 10.1a7.61 7.61 0 0 1-.3 2.1l-.3 1.1l.8.8l6.7 6.7a2.88 2.88 0 0 1 .9 2.1A2.72 2.72 0 0 1 27 27a2.9 2.9 0 0 1-4.2 0l-6.7-6.7l-.8-.8l-1.1.3a7.61 7.61 0 0 1-2.1.3a8.27 8.27 0 0 1-5.7-2.3A7.63 7.63 0 0 1 4 12.1a8.33 8.33 0 0 1 .3-2.2l4.4 4.4a4.14 4.14 0 0 0 5.9.2a4.14 4.14 0 0 0-.2-5.9L10 4.2a6.45 6.45 0 0 1 2-.3a8.27 8.27 0 0 1 5.7 2.3a8.49 8.49 0 0 1 2.4 5.9"></path></svg></span><span><span class="twoslash-completions-matched">p</span><span class="twoslash-completions-unmatched">rototype</span></span></li></ul></span>arseInt</span></span><span style="--shiki-dark:#666666;--shiki-light:#999999">(</span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48"><span class="twoslash-hover"><span class="twoslash-popup-info"><span class="line"><span style="--shiki-dark:#CB7676;--shiki-light:#AB5959">const</span><span> </span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48">todo</span><span style="--shiki-dark:#666666;--shiki-light:#999999">:</span><span> </span><span style="--shiki-dark:#5DA994;--shiki-light:#2E8F82">Readonly</span><span style="--shiki-dark:#666666;--shiki-light:#999999">&#x3C;</span><span style="--shiki-dark:#5DA994;--shiki-light:#2E8F82">Todo</span><span style="--shiki-dark:#666666;--shiki-light:#999999">></span></span></span>todo</span></span><span style="--shiki-dark:#666666;--shiki-light:#999999">.</span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48"><span class="twoslash-hover"><span class="twoslash-popup-info"><span class="line"><span style="--shiki-dark:#80A665;--shiki-light:#59873A">title</span><span style="--shiki-dark:#666666;--shiki-light:#999999">:</span><span style="--shiki-dark:#DBD7CAEE;--shiki-light:#393A34"> </span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48">string</span></span><div class="twoslash-popup-jsdoc">The title of the todo item</div></span>title</span></span><span style="--shiki-dark:#666666;--shiki-light:#999999">,</span><span style="--shiki-dark:#DBD7CAEE;--shiki-light:#393A34"> </span><span style="--shiki-dark:#4C9A91;--shiki-light:#2F798A">10</span><span style="--shiki-dark:#666666;--shiki-light:#999999">);</span></span>
<span class="line"><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48"><span class="twoslash-hover"><span class="twoslash-popup-info"><span class="line"><span style="--shiki-dark:#CB7676;--shiki-light:#AB5959">var</span><span> </span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48">Number</span><span style="--shiki-dark:#666666;--shiki-light:#999999">:</span><span> </span><span style="--shiki-dark:#5DA994;--shiki-light:#2E8F82">NumberConstructor</span></span><div class="twoslash-popup-jsdoc">An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers.</div></span>Number</span></span><span style="--shiki-dark:#666666;--shiki-light:#999999">.</span><span style="--shiki-dark:#80A665;--shiki-light:#59873A"><span>p<span class="twoslash-completion-cursor"><ul class="twoslash-completion-list"><li><span class="twoslash-completions-icon completions-method"><svg viewBox="0 0 32 32"><path fill="currentColor" d="m19.626 29.526l-.516-1.933a12.004 12.004 0 0 0 6.121-19.26l1.538-1.28a14.003 14.003 0 0 1-7.143 22.473"></path><path fill="currentColor" d="M10 29H8v-3.82l.804-.16C10.262 24.727 12 23.62 12 20v-1.382l-4-2v-2.236l4-2V12c0-5.467 3.925-9 10-9h2v3.82l-.804.16C21.738 7.273 20 8.38 20 12v.382l4 2v2.236l-4 2V20c0 5.467-3.925 9-10 9m0-2c4.935 0 8-2.682 8-7v-2.618l3.764-1.882L18 13.618V12c0-4.578 2.385-6.192 4-6.76V5c-4.935 0-8 2.682-8 7v1.618L10.236 15.5L14 17.382V20c0 4.578-2.385 6.192-4 6.76Z"></path><path fill="currentColor" d="M5.231 24.947a14.003 14.003 0 0 1 7.147-22.474l.516 1.932a12.004 12.004 0 0 0-6.125 19.263Z"></path></svg></span><span><span class="twoslash-completions-matched">p</span><span class="twoslash-completions-unmatched">arseFloat</span></span></li><li><span class="twoslash-completions-icon completions-method"><svg viewBox="0 0 32 32"><path fill="currentColor" d="m19.626 29.526l-.516-1.933a12.004 12.004 0 0 0 6.121-19.26l1.538-1.28a14.003 14.003 0 0 1-7.143 22.473"></path><path fill="currentColor" d="M10 29H8v-3.82l.804-.16C10.262 24.727 12 23.62 12 20v-1.382l-4-2v-2.236l4-2V12c0-5.467 3.925-9 10-9h2v3.82l-.804.16C21.738 7.273 20 8.38 20 12v.382l4 2v2.236l-4 2V20c0 5.467-3.925 9-10 9m0-2c4.935 0 8-2.682 8-7v-2.618l3.764-1.882L18 13.618V12c0-4.578 2.385-6.192 4-6.76V5c-4.935 0-8 2.682-8 7v1.618L10.236 15.5L14 17.382V20c0 4.578-2.385 6.192-4 6.76Z"></path><path fill="currentColor" d="M5.231 24.947a14.003 14.003 0 0 1 7.147-22.474l.516 1.932a12.004 12.004 0 0 0-6.125 19.263Z"></path></svg></span><span><span class="twoslash-completions-matched">p</span><span class="twoslash-completions-unmatched">arseInt</span></span></li><li><span class="twoslash-completions-icon completions-property"><svg viewBox="0 0 32 32"><path fill="currentColor" d="M12.1 2a9.8 9.8 0 0 0-5.4 1.6l6.4 6.4a2.1 2.1 0 0 1 .2 3a2.1 2.1 0 0 1-3-.2L3.7 6.4A9.84 9.84 0 0 0 2 12.1a10.14 10.14 0 0 0 10.1 10.1a10.9 10.9 0 0 0 2.6-.3l6.7 6.7a5 5 0 0 0 7.1-7.1l-6.7-6.7a10.9 10.9 0 0 0 .3-2.6A10 10 0 0 0 12.1 2m8 10.1a7.61 7.61 0 0 1-.3 2.1l-.3 1.1l.8.8l6.7 6.7a2.88 2.88 0 0 1 .9 2.1A2.72 2.72 0 0 1 27 27a2.9 2.9 0 0 1-4.2 0l-6.7-6.7l-.8-.8l-1.1.3a7.61 7.61 0 0 1-2.1.3a8.27 8.27 0 0 1-5.7-2.3A7.63 7.63 0 0 1 4 12.1a8.33 8.33 0 0 1 .3-2.2l4.4 4.4a4.14 4.14 0 0 0 5.9.2a4.14 4.14 0 0 0-.2-5.9L10 4.2a6.45 6.45 0 0 1 2-.3a8.27 8.27 0 0 1 5.7 2.3a8.49 8.49 0 0 1 2.4 5.9"></path></svg></span><span><span class="twoslash-completions-matched">p</span><span class="twoslash-completions-unmatched">rototype</span></span></li></ul></span>arseInt</span></span><span style="--shiki-dark:#666666;--shiki-light:#999999">(</span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48"><span class="twoslash-hover"><span class="twoslash-popup-info"><span class="line"><span style="--shiki-dark:#CB7676;--shiki-light:#AB5959">const</span><span> </span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48">todo</span><span style="--shiki-dark:#666666;--shiki-light:#999999">:</span><span> </span><span style="--shiki-dark:#5DA994;--shiki-light:#2E8F82">Readonly</span><span style="--shiki-dark:#666666;--shiki-light:#999999">&#x3C;</span><span style="--shiki-dark:#5DA994;--shiki-light:#2E8F82">Todo</span><span style="--shiki-dark:#666666;--shiki-light:#999999">></span></span></span>todo</span></span><span style="--shiki-dark:#666666;--shiki-light:#999999">.</span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48"><span class="twoslash-hover"><span class="twoslash-popup-info"><span class="line"><span style="--shiki-dark:#80A665;--shiki-light:#59873A">title</span><span style="--shiki-dark:#666666;--shiki-light:#999999">:</span><span style="--shiki-dark:#DBD7CAEE;--shiki-light:#393A34"> </span><span style="--shiki-dark:#BD976A;--shiki-light:#B07D48">string</span></span><div class="twoslash-popup-jsdoc">The title of the todo item</div></span>title</span></span><span style="--shiki-dark:#666666;--shiki-light:#999999">,</span><span style="--shiki-dark:#DBD7CAEE;--shiki-light:#393A34"> </span><span style="--shiki-dark:#4C9A91;--shiki-light:#2F798A">10</span><span style="--shiki-dark:#666666;--shiki-light:#999999">);</span></span>
<span class="line"></span></code></pre>
<script>
function toggleColor() {
Expand Down

0 comments on commit b1a9408

Please sign in to comment.