mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-05 19:04:43 +03:00
docs(dotnet): fix APIResponse.headers type (#14518)
This commit is contained in:
parent
582a18e4dc
commit
88ba9c2ff2
@ -773,7 +773,7 @@ function translateType(type, parent, generateNameCallback = t => t.name, optiona
|
||||
// get the inner types of both templates, and if they're strings, it's a keyvaluepair string, string,
|
||||
const keyType = translateType(type.templates[0], parent, generateNameCallback, false, isReturnType);
|
||||
const valueType = translateType(type.templates[1], parent, generateNameCallback, false, isReturnType);
|
||||
if (parent.name === 'Request' || parent.name === 'Response')
|
||||
if (['Request', 'Response', 'APIResponse'].includes(parent.name))
|
||||
return `Dictionary<${keyType}, ${valueType}>`;
|
||||
return `IEnumerable<KeyValuePair<${keyType}, ${valueType}>>`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user