fix(tl-ref): fixed arrays and core types for return types

This commit is contained in:
teidesu 2021-04-14 21:54:52 +03:00
parent e6dd822644
commit c318c059f8
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ export function LinkToTl(
prefix = prefix.prefix 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) { if (!type && !name) {
const fullType = prefix const fullType = prefix

View file

@ -208,7 +208,7 @@ export default function TlObject({ data }: { data: GraphqlResult }) {
obj.returns && ( obj.returns && (
<> <>
constructor ID 0x{obj.tlId} / returns{' '} constructor ID 0x{obj.tlId} / returns{' '}
{LinkToTl(obj.prefix, 'union', obj.returns)} {LinkToTl(obj.returns)}
{obj.available && {obj.available &&
' / available for ' + ' / available for ' +
(obj.available === 'both' (obj.available === 'both'