Fix react-native function call arity errors

Reviewed By: zertosh

Differential Revision: D5081816

fbshipit-source-id: 5978770c30a69fb287d03aa7511999ce30f856a1
This commit is contained in:
Gabe Levi
2017-05-18 16:51:37 -07:00
committed by Facebook Github Bot
parent aa3bbf18a1
commit 3ddc7d47d5
22 changed files with 86 additions and 72 deletions

View File

@@ -43,7 +43,7 @@ function createCodeWithMap(bundle: Bundle, dev: boolean, sourceMapSourcesRoot?:
function saveBundleAndMap(
bundle: Bundle,
options: OutputOptions,
log: (x: string) => {},
log: (...args: Array<string>) => {},
): Promise<> {
const {
bundleOutput,

View File

@@ -38,7 +38,7 @@ const MODULES_DIR = 'js-modules';
function saveAsAssets(
bundle: Bundle,
options: OutputOptions,
log: (x: string) => void,
log: (...args: Array<string>) => void,
): Promise<mixed> {
const {
bundleOutput,

View File

@@ -34,7 +34,7 @@ const SIZEOF_UINT32 = 4;
function saveAsIndexedFile(
bundle: Bundle,
options: OutputOptions,
log: (x: string) => void,
log: (...args: Array<string>) => void,
): Promise<> {
const {
bundleOutput,

View File

@@ -15,7 +15,7 @@ const writeFile = require('../writeFile');
function writeSourcemap(
fileName: string,
contents: string,
log: (x: string) => void,
log: (...args: Array<string>) => void,
): Promise<> {
if (!fileName) {
return Promise.resolve();