Convert logging infrastructure to TypeScript

This commit is contained in:
Evan Hahn
2021-01-27 15:13:33 -06:00
committed by GitHub
parent 10ace53845
commit a8787e7c9e
19 changed files with 595 additions and 331 deletions

14
ts/firstline.d.ts vendored Normal file
View File

@@ -0,0 +1,14 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
declare module 'firstline' {
interface FirstLineOpts {
encoding?: BufferEncoding;
lineEnding?: '\n';
}
export default function firstLine(
filePath: string,
opts?: FirstLineOpts
): Promise<string>;
}