mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
api(dotnet): make headers a dict (#6709)
This commit is contained in:
parent
3bdb1c356f
commit
be95cf48b6
@ -809,6 +809,8 @@ 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,
|
||||
let keyType = translateType(type.templates[0], parent, generateNameCallback);
|
||||
let valueType = translateType(type.templates[1], parent, generateNameCallback);
|
||||
if (parent.name === 'Request' || parent.name === 'Response')
|
||||
return `Dictionary<${keyType}, ${valueType}>`;
|
||||
return `IEnumerable<KeyValuePair<${keyType}, ${valueType}>>`;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user