mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[flow] type adler32 (#7080)
This one is trivial Test Plan: npm run flow Reviewers: @zpao @spicyj
This commit is contained in:
committed by
GitHub
parent
12a6ad1ef5
commit
489caeb2d7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user