You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/05/27 11:30:07 UTC

[GitHub] [beam] damccorm commented on a diff in pull request #17689: cleaned up TypeScript in coders.ts

damccorm commented on code in PR #17689:
URL: https://github.com/apache/beam/pull/17689#discussion_r883525148


##########
sdks/typescript/src/apache_beam/coders/coders.ts:
##########
@@ -114,20 +114,31 @@ export interface Coder<T> {
   toProto(pipelineContext: ProtoContext): runnerApi.Coder;
 }
 
-function writeByteCallback(val, buf, pos) {
+function writeByteCallback(
+  val: number,
+  buf: { [x: string]: number },
+  pos: number
+) {
   buf[pos] = val & 0xff;
 }
 
+interface HackedWriter extends Writer {

Review Comment:
   Should we export this? Presumably we're going to want it in the caller eventually



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org