mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 11:07:19 +00:00
Satisfy typechecker in places where index type is ambigious
This commit is contained in:
parent
4ee80fba8e
commit
eacba10993
2 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@
|
|||
class="command mb-4"
|
||||
v-bind:ref="getCommandSlug(command)" v-bind:class="{target: targetCommandId === getCommandSlug(command)}">
|
||||
<h4 class="text-xl font-semibold mb-0">
|
||||
<span v-for="(trigger, index) in getTriggers(command)"> <span class="text-gray-600" v-if="index > 0">/</span> !{{ trigger }} </span>
|
||||
<span v-for="(trigger, index) in getTriggers(command)"> <span class="text-gray-600" v-if="typeof index === 'number' && index > 0">/</span> !{{ trigger }} </span>
|
||||
</h4>
|
||||
<MarkdownBlock v-if="command.description"
|
||||
:content="command.description"
|
||||
|
@ -88,7 +88,7 @@
|
|||
<div v-if="command.signature">
|
||||
<h5 class="font-semibold mb-2">Signatures:</h5>
|
||||
<ul class="list-none">
|
||||
<li v-for="(signature, index) in getCommandSignatures(command)" v-bind:class="{'mt-8': index !== 0}">
|
||||
<li v-for="(signature, index) in getCommandSignatures(command)" v-bind:class="{'mt-8': typeof index === 'number' && index !== 0}">
|
||||
<code class="inline-code bg-gray-900">
|
||||
!{{ getTriggers(command)[0] }}
|
||||
<span v-for="paramInfo in getSignatureParameters(signature)">{{ renderParameterOrOption(paramInfo.name, paramInfo.param) }} </span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue