From 489caeb2d7d62895da7ea9afb0e97344d333a2b5 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Mon, 20 Jun 2016 15:35:59 +0200 Subject: [PATCH] [flow] type adler32 (#7080) This one is trivial Test Plan: npm run flow Reviewers: @zpao @spicyj --- src/shared/utils/adler32.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/utils/adler32.js b/src/shared/utils/adler32.js index 1248531e23..45d7c005b6 100644 --- a/src/shared/utils/adler32.js +++ b/src/shared/utils/adler32.js @@ -7,6 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule adler32 + * @flow */ 'use strict'; @@ -18,7 +19,7 @@ var MOD = 65521; // This implementation (a modified version of the SheetJS version) has been optimized // for our use case, at the expense of conforming to the adler32 specification // for non-ascii inputs. -function adler32(data) { +function adler32(data: string): number { var a = 1; var b = 0; var i = 0;