Typescriptify the main process code (9/N)

Summary: Converted scripts/build-release.js and scripts/build-headless.js to typescript

Reviewed By: passy

Differential Revision: D20066504

fbshipit-source-id: 25f336062361e1211b581f96979978a6bf4fe6d4
This commit is contained in:
Anton Nikolaev
2020-02-27 05:28:02 -08:00
committed by Facebook Github Bot
parent 09d0b4c841
commit caf04e4e4a
7 changed files with 88 additions and 44 deletions

18
types/line-replace.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
declare module 'line-replace' {
export default function(args: {
file: string;
line: number;
text: string;
addNewLine: boolean;
callback: (args: {file: string; line: number; replacedText: string; text: string}) => void;
}): void;
}