fix(tl-ref): fixed arrays and core types for return types
This commit is contained in:
parent
e6dd822644
commit
c318c059f8
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ export function LinkToTl(
|
|||
prefix = prefix.prefix
|
||||
}
|
||||
|
||||
// this kind of invokation is used in parameters table
|
||||
// this kind of invocation is used in parameters table and for return type
|
||||
if (!type && !name) {
|
||||
const fullType = prefix
|
||||
|
||||
|
|
|
@ -208,7 +208,7 @@ export default function TlObject({ data }: { data: GraphqlResult }) {
|
|||
obj.returns && (
|
||||
<>
|
||||
constructor ID 0x{obj.tlId} / returns{' '}
|
||||
{LinkToTl(obj.prefix, 'union', obj.returns)}
|
||||
{LinkToTl(obj.returns)}
|
||||
{obj.available &&
|
||||
' / available for ' +
|
||||
(obj.available === 'both'
|
||||
|
|
Loading…
Reference in a new issue