From a14555853ea7e6ff2858f0d8bb8a8612b7b0d8fc Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sun, 19 Jun 2016 21:01:33 +0200 Subject: [PATCH] [flow] type adler32 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 1248531e23c3..45d7c005b6c6 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;