signal-desktop/ts/firstline.d.ts

15 lines
305 B
TypeScript
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2021 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>;
}