signal-desktop/ts/firstline.d.ts
2022-08-30 16:24:04 -05:00

14 lines
310 B
TypeScript

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