Skip to content

Commit

Permalink
fix: cast map.deserializeBinary to any
Browse files Browse the repository at this point in the history
  • Loading branch information
renkei authored and thesayyn committed Aug 11, 2021
1 parent ed3c9b8 commit fa462e4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/descriptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1394,9 +1394,14 @@ function createDeserialize(
),
ts.factory.createCallExpression(
ts.factory.createPropertyAccessExpression(
ts.factory.createPropertyAccessExpression(
pbIdentifier,
"Map"
ts.factory.createParenthesizedExpression(
ts.factory.createAsExpression(
ts.factory.createPropertyAccessExpression(
pbIdentifier,
"Map"
),
ts.factory.createToken(ts.SyntaxKind.AnyKeyword)
),
),
"deserializeBinary"
),
Expand Down Expand Up @@ -1806,4 +1811,4 @@ function processDescriptorRecursively(
return statements;
}

module.exports = { processDescriptorRecursively, createEnum, createNamespace }
module.exports = { processDescriptorRecursively, createEnum, createNamespace }

0 comments on commit fa462e4

Please sign in to comment.