mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
gts fix
This commit is contained in:
parent
a3762259a1
commit
6b03311475
@ -134,12 +134,12 @@ function getStructFromJson(obj: any): Struct {
|
||||
if (typeof obj !== 'object' || obj === null) {
|
||||
throw new Error('Invalid JSON object for Struct field');
|
||||
}
|
||||
const fields: {[key: string]: Value} = {};
|
||||
const fields: { [key: string]: Value } = {};
|
||||
for (const [fieldName, value] of Object.entries(obj)) {
|
||||
fields[fieldName] = validateValue(value);
|
||||
}
|
||||
return {
|
||||
fields
|
||||
fields,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user